Reply
Highlighted
Member
Posts: 9
Registered: ‎10-27-2015

testing error codes in sandbox gets successful transactions

Using the error codes in http://developer.authorize.net/hello_world/testing_guide/

 

I have gotten successful transactions using the error codes for zip 46201, get no error codes, but do get the avsResultCode "A".  Will this result in a successful transaction or a decline?

 

 

Response from Stream: '<?xml version="1.0" encoding="utf-8"?><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>Ok</resultCode><message><code>I00001</code><text>Successful.</text></message></messages><transactionResponse><responseCode>1</responseCode><authCode>08ZZBL</authCode><avsResultCode>A</avsResultCode><cvvResultCode>M</cvvResultCode><cavvResultCode>2</cavvResultCode><transId>2242960468</transId><refTransID /><transHash>2BECB1ABE41E4714D138E45065B5DD24</transHash><testRequest>0</testRequest><accountNumber>XXXX1111</accountNumber><accountType>Visa</accountType><messages><message><code>1</code><description>This transaction has been approved.</description></message></messages></transactionResponse></createTransactionResponse>'

 

 

With zip 46205 I do get the avs error code, but also along with a result code text  "success".  Does this mean the transaction would go through in real life as well?  

 

Response from Stream: '<?xml version="1.0" encoding="utf-8"?><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>Ok</resultCode><message><code>I00001</code><text>Successful.</text></message></messages><transactionResponse><responseCode>2</responseCode><authCode>2YHXI4</authCode><avsResultCode>N</avsResultCode><cvvResultCode>M</cvvResultCode><cavvResultCode>2</cavvResultCode><transId>2242960030</transId><refTransID>2242960030</refTransID><transHash>93C314E670A91391771B4EE522C7C9AC</transHash><testRequest>0</testRequest><accountNumber>XXXX1111</accountNumber><accountType>Visa</accountType><errors><error><errorCode>27</errorCode><errorText>The transaction has been declined because of an AVS mismatch. The address provided does not match billing address of cardholder.</errorText></error></errors></transactionResponse></createTransactionResponse>'

 

 

Is the sandbox capable of producing these errors or should I just test in production with test mode?

 

Thanks

Highlighted
Posts: 2,765
Topics: 57
Kudos: 247
Blog Posts: 67
Registered: ‎12-05-2011

Re: testing error codes in sandbox gets successful transactions

Hello @twe

 

There are two parts that you need to check in the response:

 

  <messages>
    <resultCode>Ok</resultCode>
    <message><code>I00001</code>
      <text>Successful.</text>
    </message>
  </messages>

This section indicates that the transactions was succesfully processed by the processor.

 

The next section contains more detailed information including the response code:

 

  <transactionResponse>
    <responseCode>1</responseCode>
    <authCode>08ZZBL</authCode>
    <avsResultCode>A</avsResultCode>
    <cvvResultCode>M</cvvResultCode>
    <cavvResultCode>2</cavvResultCode>
    <transId>2242960468</transId>
    <refTransID />
    <transHash>2BECB1ABE41E4714D138E45065B5DD24</transHash>
    <testRequest>0</testRequest>
    <accountNumber>XXXX1111</accountNumber>
    <accountType>Visa</accountType>
    <messages>
      <message><code>1</code>
        <description>This transaction has been approved.</description>
      </message>
    </messages>
  </transactionResponse>

 

You need to look at both parts, the message and the transactionResponse.  There are also settings in the merchant interface which allow control over which responses are accepted, held for review or declined.

 

Richard

 

 

Highlighted
Member
Posts: 9
Registered: ‎10-27-2015

Re: testing error codes in sandbox gets successful transactions

thank you!