cancel
Showing results for 
Search instead for 
Did you mean: 

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

cltw
Contributor
2 REPLIES 2

Hello @cltw

 

Can you please show an example request and response?

 

Richard

RichardH
Administrator Administrator
Administrator

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);