Jump to content

Automatically send invoice email after order added


kUdtiHaEX

Recommended Posts

Here is a question: I'm creating a new order via API. So the code goes something like this:

 

		$data = array();
		$data["action"] = "addorder";
		$data["clientid"] = $whmcs_client_id;
		$data["paymentmethod"] = "banktransfer";
		$data["noinvoiceemail"] = false;
		$data["noemail"] = false;
		$data["noinvoice"] = false;

 

followed by the rest of the array which contains product information.

 

So, I send this to API, API says that's fine, I've got the order under that client, and the Invoice is created. But, the only thing I get is "Order confirmation email" without more important "Ivoice email" which contains payment instructions.

 

What am I doing wrong? API states this:

noinvoiceemail - set true to generate but not send the invoice notification email

 

My noinvoiceemail param is set to FALSE so logically it should create invoice, which it does, but also it should send invoice email.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated