Integration and Testing

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

Posts: 3
Registered: ‎02-28-2019

Accept transaction error

[ Edited ]



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)



All Star
Posts: 733
Registered: ‎11-05-2018

Re: Accept transaction error

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()?