Sha256: c31d3b4db321284fb5e98217cba8588c6bcc0231a22853ed47306c5f619af0ae
Contents?: true
Size: 734 Bytes
Versions: 6
Compression:
Stored size: 734 Bytes
Contents
module ActiveMerchant #:nodoc: module Billing #:nodoc: ## # Delegates to the appropriate gateway, either the Transaction or Advanced # depending on options passed to new. # class UsaEpayGateway < Gateway self.abstract_class = true ## # Creates an instance of UsaEpayTransactionGateway by default, but if # :software id or :live_url are passed in the options hash it will # create an instance of UsaEpayAdvancedGateway. # def self.new(options={}) if options.has_key?(:software_id) || options.has_key?(:live_url) UsaEpayAdvancedGateway.new(options) else UsaEpayTransactionGateway.new(options) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems