I'm using Accept.js with a custom form. After I get the nonce I forward along an address and zip code in the transaction phase, but I always get avsResponse: 'P' back in the response.
I am using the sandbox, is AVS supported for auth capture transactions? I tried MasterCard, VISA, etc. Also, the cvvResultCode is always the empty string?
Solved! Go to Solution.
09-17-2019 03:28 PM - edited 09-17-2019 03:42 PM
I found a solution here:
https://community.developer.authorize.net/t5/Integration-and-Testing/AVS-check-doesn-t-work-in-test/...
The trick is that your developer account must be set to Live.
09-17-2019 04:18 PM
This is a sample response:
<?xml version="1.0" ?>
<createTransactionResponse xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<messages>
<resultCode>Ok</resultCode>
<message>
<code>I00001</code>
<text>Successful.</text>
</message>
</messages>
<transactionResponse>
<responseCode>1</responseCode>
<authCode>000000</authCode>
<avsResultCode>P</avsResultCode>
<cvvResultCode/>
<cavvResultCode/>
<transId>0</transId>
<refTransID/>
<transHash/>
<testRequest>1</testRequest>
<accountNumber>XXXX0002</accountNumber>
<accountType>AmericanExpress</accountType>
<messages>
<message>
<code>1</code>
<description>This transaction has been approved.</description>
</message>
</messages>
<transHashSha2/>
</transactionResponse>
</createTransactionResponse>
09-17-2019 04:00 PM
I found a solution here:
https://community.developer.authorize.net/t5/Integration-and-Testing/AVS-check-doesn-t-work-in-test/...
The trick is that your developer account must be set to Live.
09-17-2019 04:18 PM