How can I test the Authorize.net action?

Testing Payment Gateway actions can be difficult; user Chris has posted his notes on testing the Authorize.net action in a forum thread - the main points are noted here.

The Authorise.net Trial action randomises the amounts but is otherwise fully functional and can be used for testing and developing. The paid version is needed for live use.

Some Payment Gateway activities are 'behind the scenes' handshake actions where, for example, Authorize.net contacts a URL on your site to confirm the transaction or report the status. You can get information about these activities by using Email actions in the Event and including code like this in the template to display all the data that has been received.

<?php
echo'<div>$form->data: '.print_r($form->data, true).'</div>';
?>

The Authorise.net Testing Guide is [url=https://developer.authorize.net/hello_world/testing_guide/]here[/url] this offers a list of ways that you can test different cards and error reports. It also includes a link where you can sign up for a SandBox account for testing.

Chris noted a possible ChronoForms bug in the action that forces Test Mode. In working with the SandBox you need to stay in Live Mode to get full functionality. To fix this in /administrator/components/com_chronoforms5/chronoforms/actions/authorize_net/authorize_net.php around line 116 comment out the line shown here to restore Live Mode:

if($config->get('testing', 0) == 1){
  // $authnet_values['x_test_request'] = "TRUE"; // << comment out this line
}

To test Held mode 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.

Category: ChronoForms v5