Sha256: 77e503889e5e1d7f26d924ffa07ba8b432295d6f660e66a39f6215104311f65e
Contents?: true
Size: 704 Bytes
Versions: 20
Compression:
Stored size: 704 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 ## # 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={}) unless options.has_key?(:software_id) || options.has_key?(:live_url) UsaEpayTransactionGateway.new(options) else UsaEpayAdvancedGateway.new(options) end end end end end
Version data entries
20 entries across 20 versions & 4 rubygems