cancel
Showing results for 
Search instead for 
Did you mean: 

Allow Multiple Invoice Numbers

I'm attempting to have a form where user's can pay more than one invoice at a time, ie, adding the amount of each invoice to process one payment for mulitple invoices.  I don't see a way to add more than one invoice number using the PHP SDK.

 

Here's the line:

$order->setInvoiceNumber($invoice_numbers);

 

So what I attempted to do is concatenate the chosen invoices as one string using "|" as a separator and I get the following error:

 

The 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:invoiceNumber' element is invalid - The value '03877413|042000012924458' is invalid according to its datatype 'String' - The actual length is greater than the MaxLength value.

 

The doc online doesn't specify a max length so is there another way I can acheive this?

 

cmstactics
Member
1 REPLY 1

Is in the schema

https://api.authorize.net/xml/v1/schema/AnetApiSchema.xsd

<xs:maxLength value="20"/>

RaynorC1emen7
Expert