This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Initializer where we inject the mock gateway into global variable AUTHNET_GATEWAY or setup the real client | |
if !Rails.env.production? | |
ActiveMerchant::Billing::Base.mode = :test | |
end | |
$using_mock_auth_net_gateway = false | |
# Use FORCE_AUTH_NET to use the real Auth.net API in tests | |
# Use MOCK_AUTH_NET to use the mock Auth.net API even in development (good on a plane!) |