Reply
Highlighted
Member
Posts: 2
Registered: ‎09-16-2013
Accepted Solution

Card Present Transactions with the XML AIM API

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>

 


Accepted Solutions
Highlighted
Solution
Accepted by topic author nathans
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Card Present Transactions with the XML AIM API

[ Edited ]

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.

View solution in original post


All Replies
Highlighted
Solution
Accepted by topic author nathans
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Card Present Transactions with the XML AIM API

[ Edited ]

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.

Highlighted
Member
Posts: 2
Registered: ‎09-16-2013

Re: Card Present Transactions with the XML AIM API

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>