Shopify/active_merchant — pull request #924 by KevinColemanInc (2013-11-21 18:04:47+00:00)
Title: add test request option to authorize.net gateway

In order to properly test voids and refunds, transactions on the authorize test server need test_request to be false, otherwise Authorize will return a authorization_id of '0'.

When you tried to void a transaction with a '0' as the id, Authorize says that is a bad transaction ID, even if the test_request flag is set true.

Currently, only test requests can be run against the test server. There is not an option to run non-test_requests on the test server. This request changes that

Source:
http://developer.authorize.net/testingfaqs/#reports