- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to process Card Present transactions through the XML API but I'm running into some errors in the test environment. Do I have any mistakes in my request here?
<createTransactionRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"> <merchantAuthentication> <name></name> <transactionKey></transactionKey> </merchantAuthentication> <transactionRequest> <transactionType>authCaptureTransaction</transactionType> <amount>1.00</amount> <payment> <trackData> <track1>%B4111111111111111^SMITH/JOHN ^16121019761100 00868000000?</track1> </trackData> </payment> <transactionSettings> <setting> <settingName>duplicateWindow</settingName> <settingValue>0</settingValue> </setting> <setting> <settingName>recurringBilling</settingName> <settingValue>false</settingValue> </setting> </transactionSettings> </transactionRequest> </createTransactionRequest>
This is the response I'm getting with my sandbox Card Present account credentials filled in:
<createTransactionResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"> <messages> <resultCode>Error</resultCode> <message> <code>E00027</code> <text>The transaction was unsuccessful.</text> </message> </messages> <transactionResponse> <responseCode>3</responseCode> <authCode/> <avsResultCode>P</avsResultCode> <cvvResultCode/> <cavvResultCode/> <transId>0</transId> <refTransID/> <transHash>E08F048CD8E2F19A2FC0F70D09EF6D72</transHash> <testRequest>0</testRequest> <accountNumber/> <accountType/> <errors> <error> <errorCode>87</errorCode> <errorText>Transactions of this market type cannot be processed on this system.</errorText> </error> </errors> </transactionResponse> </createTransactionResponse>
This is the response I'm getting with my sandbox Card Not Present account credentials filled in:
<createTransactionResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"> <messages> <resultCode>Error</resultCode> <message> <code>E00027</code> <text>The transaction was unsuccessful.</text> </message> </messages> <transactionResponse> <responseCode>3</responseCode> <authCode/> <avsResultCode>P</avsResultCode> <cvvResultCode/> <cavvResultCode/> <transId>0</transId> <refTransID/> <transHash>3C99B966FE62FF7A1EB5577297946B30</transHash> <testRequest>0</testRequest> <accountNumber/> <accountType/> <errors> <error> <errorCode>33</errorCode> <errorText>Credit card number is required.</errorText> </error> <error> <errorCode>33</errorCode> <errorText>Expiration date is required.</errorText> </error> </errors> </transactionResponse> </createTransactionResponse>
Solved! Go to Solution.
09-16-2013 01:54 PM
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You need to pass the Minimum Requirements in
http://www.authorize.net/support/CP_guide.pdf
Can you can NOT do Card Present Transactions with a Card NOT present account.
09-16-2013 02:06 PM - edited 09-16-2013 02:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You need to pass the Minimum Requirements in
http://www.authorize.net/support/CP_guide.pdf
Can you can NOT do Card Present Transactions with a Card NOT present account.
09-16-2013 02:06 PM - edited 09-16-2013 02:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks. I couldn't figure out the bits I needed from the guide I was looking at, http://www.authorize.net/support/AIM_guide_XML.pdf
This request worked
<createTransactionRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"> <merchantAuthentication> <name></name> <transactionKey></transactionKey> </merchantAuthentication> <transactionRequest> <transactionType>authCaptureTransaction</transactionType> <amount>1.00</amount> <payment> <trackData> <track1>%B4111111111111111^SMITH/JOHN ^16121019761100 00868000000?</track1> </trackData> </payment> <retail> <marketType>2</marketType> <deviceType>7</deviceType> </retail> <transactionSettings> <setting> <settingName>duplicateWindow</settingName> <settingValue>0</settingValue> </setting> <setting> <settingName>recurringBilling</settingName> <settingValue>false</settingValue> </setting> </transactionSettings> </transactionRequest> </createTransactionRequest>
09-16-2013 02:25 PM

