01-04-2010 01:25 PM
I tried putting in my first payment profile and according to the docs "cardCode" should be avilable under payment->creditCard to test CVV.
Should this not be used as part of the validation and only during an actual charge? If so, the documentation last revised 10/20/2009 is out of date.
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'.
01-05-2010 09:26 AM
The cardCode element can appear in the following 5 places:
There is no place where cardCode is a direct child element of the payment element.
03-19-2012 04:33 PM
it doesnt look like it is a direct child of the payment element in the poster's case. it is a child of credit card as in #4 of your examples. I am getting the same error. was this ever resolved?
<?xml version="1.0" encoding="utf-8"?>
<paymentProfile><customerType>individual</customerType><billTo><firstName>something</firstName><lastName>something</lastName><address>8800 n olive ave</address><city>culver</city><state>CA</state><zip>90034</zip><country>US</country></billTo><payment><creditCard><cardNumber>XXXX7893</cardNumber><cardCode>123</cardCode><expirationDate>2012-01</expirationDate></creditCard></payment>...</paymentProfile>
'code' => 'E00003',
'text' => '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\'.',
03-19-2012 04:45 PM
Authorize.net XML requests only work with the fields in a specific order. In this case, you have expiration date after card code, when I think it's supposed to go before. Try reversing the order and see if it works.