Testing Authorize.Net Transaction Responses

rjrinc 01 Dec, 2015
Hi,

I'm having trouble testing all of the transaction responses back from Authorize.net. I'm able to test successful transactions "On Approved" and "On Error" Transactions. Using the testing cards provided on Authorize.net's website, testing . I can test basic errors like invalid card number but how do I test the "On Declined" response and "On Held" response?

I'm having trouble finding an answer on this and the directions on testing a declined transaction by using a certain Zip code still returns a successful transaction. I also tried setting the sandbox account to live mode and the ChronoForms authorize.net action to live. However this did not correct the problem.

Does anyone know how to successfully test each type of transaction. On Appoved, On Declined, On Error and On Held?

-Chris
GreyHead 01 Dec, 2015
Hi Chris,

I think this should help - the Authorize,net Testing Guide. I have no idea why using the Zip Code there on the sandbox would return a successful transaction :-(

Bob
rjrinc 01 Dec, 2015
Hi Bob,

Thanks for suggesting the link. However I have been looking at that doc and I'm unable to get declined transactions using the directions from Authorize. Is it possible that testing these transactions Declined and Held are something that does not work on the trial version of the Authorize.net plugin?

-Chris
GreyHead 01 Dec, 2015
Hi Chris,

As far as I know the only difference is the randomisation of the amounts - I don't have the paid version to do any detailed checks though.

The code refers to the GateWay Response Codes - which I think are on page 38 of this pdf

Bob
rjrinc 02 Dec, 2015
Thanks Bob. However I cant seem to find the answer to this problem. Having the Authorize.net Sandbox account set in Live or Test does not seem to make a difference on how the transactions are handled. In Chronoforms if I set the mode to Live the transaction does not go through and has an error about "The merchant login ID or password is invalid or the account is inactive.". If I set the mode to Test the transactions go through regardless. Is there anywhere I can find out how to reliably test the Authorize.net extension? Thanks.

- Chris
rjrinc 02 Dec, 2015
Bob,

I was able to determine that it looks like the cause of the problem with testing declined transactions is that when Chronoforms is set in test mode this is appended to the end of the request "x_test_request=TRUE" causing Authorize.net Sandbox to respond as if it was in Test Mode. I commented this line of code out in the authorize_net.php file located in /administrator/components/com_chronoforms5/chronoforms/actions/authorize_net/authorize_net.php around line 116:
if($config->get('testing', 0) == 1){
			// commented out to test declined
			// $authnet_values['x_test_request'] = "TRUE";
		}

With this modification to the code I'm able to test the declined response. Now I need to test the Held response. Do you know how this is done? I'm looking for documentation on this but have not found any yet. Thanks.

- Chris
rjrinc 02 Dec, 2015
Bob,

I found how to test HELD response with Authorize net plugin. You need to create a Fraud Detection filter in the Authorize.net sandbox and set it to "Do not Authorize and Hold for review" This is found under Tools - Fraud Detection and use for example Amount Filter.

- Chris
GreyHead 03 Dec, 2015
HI Chris,

Well found - you probably now know more about the inner working of this action than I do :-)

I've added your notes here to a FAQ.

Bob
This topic is locked and no more replies can be posted.