cancel
Showing results for 
Search instead for 
Did you mean: 

Use Testing Guide for Specific Transaction Responses

Using the Testing Guide, developers can trigger specific transaction responses in the sandbox including approvals, declines, errors, as well as AVS and Card Code responses.

 

If you have questions or comments, please use this thread.

RichardH
Administrator Administrator
Administrator
43 REPLIES 43

I'm using the CIM API and i'm having trouble generating errors. I've got my sandbox account in Live Mode but every time I use a zip code that matches what's listed here - http://developer.authorize.net/tools/errorgenerationguide/ - the transaction goes through OK.

 

I've used the test cards supplied by Authorize and I've also made up my own card numbers and all of the transactions are going through OK. Do the AVS settings in the sandbox actually matter here, or am I supposed to get errors regardless of what that's set to? I've tried changing the settings there but no luck.

 

There's got to be something I'm missing.

jaredsmark1
Contributor

It created the payment profile?

It created the payment profile and it also displays the correct error-zip-code in the profile as well. I'm not sure why it's not triggering an error response.

which validation modes did you use to create paymentprofile?

I currently have it set to None since I didn't think that would matter.

 

I just contacted tech support and they said to use the pricing to generate errors. I thought that was phased out.

I think it need to be live. or it will run it like a test transaction which doesn't do any.

why system always returns P in AVS response and approve my transaction even if i enter any of the zip code listed here : http://developer.authorize.net/tools/errorgenerationguide/.

i am sending my transactions to here : https://test.authorize.net/gateway/transact.dll

String i am posting is:x_solution_ID=A1000006&x_currency_code=USD&x_version=3.1&x_delim_data=TRUE&x_delim_char=%7C&x_relay_response=FALSE&x_type=AUTH_CAPTURE&x_method=CC&x_invoice_num=20140221213924_1393043964&x_amount=70.44&cardType=American+Express&x_exp_date=0120&x_card_code=002&x_card_num=370000000000002&x_address=SM+Road&x_zip=46208&x_login=XXXXXXXX&x_tran_key=XXXXXXXXXXXXX

 
Response i am getting is :
Array ( [0] => 1 [1] => 1 [2] => 1 [3] => (TESTMODE) This transaction has been approved. [4] => 000000 [5] => P [6] => 0 [7] => 20140221213954_13930 [8] => [9] => 70.44 [10] => CC [11] => auth_capture [12] => [13] => [14] => [15] => [16] => SM Road [17] => [18] => [19] => 46208 [20] => [21] => [22] => [23] => [24] => [25] => [26] => [27] => [28] => [29] => [30] => [31] => [32] => [33] => [34] => [35] => [36] => [37] => 6EC09CA04E07A0AD04B8ADB43D5ACE46 [38] => [39] => [40] => [41] => [42] => [43] => [44] => [45] => [46] => [47] => [48] => [49] => [50] => XXXX0002 [51] => American Express [52] => [53] => [54] => [55] => [56] => [57] => [58] => [59] => [60] => [61] => [62] => [63] => [64] => [65] => [66] => [67] => [68] => American Express )

 

So, whatever i enter in zip or whatever amount is, it always approve my transaction and always returns P in AVS response.

Can anybody please help me to know that where i am doing wrong? and why its not working as per : http://developer.authorize.net/tools/errorgenerationguide/

 

Hope to have solution ASAP.

 

Thanks

dilip

omegaitech
Member

Using Test Mode only confirms that your API Login and Transaction Key are correct and return OK.  IT will not actually perform a transaction which is why there is no transaction ID and it says TESTMODE in the response.

 

Richard

 

 

Hi,

 

Thanks a lot for reply, but may i know that how can i test AVS functions in test mode as it always returns P in AVS error code?

 

Thanks,

Dilip