Sha256: 990e287fa924259265cc756a2cada00f7b9fb722a74889019c022e5c09a1e731
Contents?: true
Size: 475 Bytes
Versions: 34
Compression:
Stored size: 475 Bytes
Contents
class Gateway::AuthorizeNet < Gateway preference :login, :string preference :password, :string def provider_class ActiveMerchant::Billing::AuthorizeNetGateway end def options # 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 end
Version data entries
34 entries across 34 versions & 6 rubygems