Integration and Testing

Authorize.Net API questions and help with your payment integration.

Reply
Regular Contributor
Posts: 50
Registered: ‎05-31-2016

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

Administrator Administrator
Administrator
Posts: 563
Registered: ‎08-03-2011

Re: API: invoiceNumber not getting passed to Authnet

[ Edited ]

Hi Don,

 

The  code shown here looks correct if you are running a "createTransactionRequest".

 

Thanks,

Joy