Module: NimbleshopAuthorizedotnet::Gateway
- Defined in:
- lib/nimbleshop_authorizedotnet/gateway.rb
Class Method Summary collapse
Class Method Details
.instance(payment_method) ⇒ Object
3 4 5 6 7 |
# File 'lib/nimbleshop_authorizedotnet/gateway.rb', line 3 def self.instance(payment_method) ActiveMerchant::Billing::Gateway.logger = Rails.logger if payment_method.mode.to_s == 'test' ActiveMerchant::Billing::AuthorizeNetGateway.new payment_method.credentials end |