cancel
Showing results for 
Search instead for 
Did you mean: 

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

fifty-git
Regular Contributor
1 REPLY 1

Hi Don,

 

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

 

Thanks,

Joy

Joy
Administrator Administrator
Administrator