Shopify/active_merchant — pull request #446 by jfelchner (2012-08-30 17:49:12+00:00)
Title: Add AuthorizeNetGateway#reverse method to hide details of void-or-refund

Often times, when we're dealing with allowing our users to give a customer their money back, we don't care how it happens, it just needs to work. Unfortunately Authorize.net isn't as nice as Samurai in that it distinguishes needing to do a `void` if a capture has not already taken place and needing to do a `refund` if it has.

Adding `AuthorizeNetGateway#reverse` allows us to abstract away the details of that.

Tests were added and we're also submitting a separate pull request for the Samurai implementation.