Method: Gateway::AuthorizeNet#options
- Defined in:
- app/models/gateway/authorize_net.rb
#options ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'app/models/gateway/authorize_net.rb', line 9 def # add :test key in the options hash, as that is what the ActiveMerchant::Billing::AuthorizeNetGateway expects if self.prefers? :test_mode self.class.default_preferences[:test] = true else self.class.default_preferences.delete(:test) end super end |