Posts: 1
Registered: ‎12-16-2015

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:



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?


Posts: 4,525
Registered: ‎03-08-2010

Re: Allow Multiple Invoice Numbers

Is in the schema

<xs:maxLength value="20"/>