Hi,
I am trying to make a transaction that uses Accept token. Inside my request, I specified billing address which has firstname and lastname. I keep getting this error
The element 'billTo' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'
has invalid child element 'firstName' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.
List of possible elements expected: 'country, phoneNumber, faxNumber, email'
in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.
But according to this the schema definition, billto element of type customerAddressType clearly has firstname in it (through its basetype nameAndAddressType)
03-02-2019 03:56 PM - edited 03-02-2019 04:09 PM
Hi @hienkhieu72
Are you able to successfully set other order objects, like shipTo? If so, sounds like something is up. Can you post your code for setting the billTo()?
03-03-2019 05:44 PM