Sha256: 4517fbacb00e6bd82ec8de9ebb42d985becef2fa296a3f6054156c91e590d1c1
Contents?: true
Size: 732 Bytes
Versions: 14
Compression:
Stored size: 732 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
14 entries across 14 versions & 1 rubygems