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'.
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.
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\'.',