Reply
Contributor
Posts: 22
Registered: ‎10-16-2015

testing decline and other error responses not working

I am testing to generate decline and other error responses in the sandbox from the codes on the testing page, (http://developer.authorize.net/hello_world/testing_guide/)  but they are still coming back successful.  

 

For example I used visa number 4111111111111111, cvv 234, and the zip code 46282.

 

Does the sandbox have this capability?  What steps do I need to do to generate the errors?

 

Thanks

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

Re: testing decline and other error responses not working

Hello @cltw

 

Can you please show an example request and response?

 

Richard

Contributor
Posts: 22
Registered: ‎10-16-2015

Re: testing decline and other error responses not working

[ Edited ]

I am noticing that the sample code I implemented doesn't take in zip, address etc. How is that verificaton supposed to be done then?

(https://github.com/AuthorizeNet/sample-code-csharp/blob/master/PaymentTransactions/ChargeCreditCard....

 

 

code:

var creditCard = new creditCardType
{
cardNumber = _cust.CreditCardNumber,
expirationDate = _cust.expDate,
cardCode = _cust.cvv


};

 


var APILOGINID = loginid;
var TRANSACTIONKEY = key;
var SECRETKEY = key;

 

_response = Purchase.Run(APILOGINID, TRANSACTIONKEY, creditCard, a_amount_i);

 

Debug.WriteLine(_response);

update(a_amount_i, _response);