vcatalano / py-authorize

A full-featured Python API for the Authorize.net payment gateway.
MIT License
42 stars 35 forks source link

Adding card code to CIM request #43

Closed filipeximenes closed 8 years ago

filipeximenes commented 9 years ago

CIMTransactionSchema does have a card_code field but it was not actually being added to the request on the _cim_base_request.

Because of this AIM requests were woking properly but CIM was returning a response_reason_code 33 with the message "Card Code is required".

This PR adds card code to the request.

filipeximenes commented 9 years ago

For some reason test_live_cim_auth_transaction is failing. I tried but could not fix this. The error message being returned is:

AuthorizeResponseError: E00003: The element 'profileTransAuthOnly' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'order' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'splitTenderId' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'