Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
API: invoiceNumber not getting passed to Authnet
I'm charging a customer profile, which works fine. I am trying to set the invoiceNumber but it's not showing up as invoice: in the receipt email. When I set it at the time of creating and charging a new customer profile it works fine.
Here is the code I am using in both:
this->order = new AnetAPI\OrderType();
$this->order->setInvoiceNumber($invoiceId);
I put logging in this method and am able to confirm that the invoiceId is getting there.
It's just not getting set or sent to Authorize.net
Your help would be appreciated.
- Don
โ11-22-2016 10:01 AM
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Don,
The code shown here looks correct if you are running a "createTransactionRequest".
Thanks,
Joy