1 class AuthorizationError < StandardError; end
2 class CaptureError < StandardError; end
4 # Your credit cards will be encrypted with the combination of the
5 # below secret key and a "remote_salt" variable that's supplied by clients
7 # Is there a better way or more common idiom for doing this?
8 @@CreditCardSecretKey = "Joe Rules!!"
12 ActiveMerchant::Billing::Base.mode = :test
13 $gateway = ActiveMerchant::Billing::AuthorizedNetGateway.new :login => 'LOGIN', :password => 'PASSWORD'
15 ActiveMerchant::Billing::Base.mode = :test
16 $gateway = ActiveMerchant::Billing::AuthorizedNetGateway.new :login => 'LOGIN', :password => 'PASSWORD'
18 $gateway = ActiveMerchant::Billing::AuthorizedNetGateway.new :login => 'LOGIN', :password => 'PASSWORD'