E00003: The element 'creditCard' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'cardCode' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'expirationDate' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.
Getting the above error. It makes no sense, because this is a valid element.
I have the XML request and response if there is some way to post that here.
03-21-2020 07:54 PM
I have seen some weird errors if you have fields in the wrong order.
03-22-2020 04:02 PM
Sorry for the long delay, life got in the way.
How can fields be in the wrong order? I pass an object to Authorize.NET and it serializes the object per the XML in the WSDL?
I am using the same WSDL for both prod and test and prod works fine. Test (sandbox) does not?
05-14-2020 09:48 PM
If you could add the request (with a test card) that would help in troubleshooting. It should look something like this:
<creditCard>
<cardNumber>5424000000000015</cardNumber>
<expirationDate>2020-12</expirationDate>
<cardCode>999</cardCode>
</creditCard>
05-15-2020 09:19 AM