class ActiveMerchant::Billing::FirstPayGateway

Public Class Methods

new(options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/first_pay.rb, line 9
def self.new(options = {})
  return FirstPayJsonGateway.new(options) if options[:merchant_key]

  FirstPayXmlGateway.new(options)
end