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>