zen4ever/django-authorizenet — Issue #12: CreateTransactionRequest not works for 'void' type of transaction (CIM api).
Author: piterimov
Created: 2011-11-23 05:17:49+00:00
State: open

CreateTransactionRequest require 'amount' parameter for all type of transactions. As described here http://www.authorize.net/support/CIM_XML_guide.pdf 'amount' not needed for 'void' transaction. But CreateTransactionRequest create '<amount>...</amount>' tags for 'void' also. Because of this, authorize.net return the error message:

"The element 'profileTransVoid' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'amount' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'customerProfileId, customerPaymentProfileId, customerShippingAddressId, transId' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd" .
And transaction doesn't pass.