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

Version Path
activemerchant-1.114.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.113.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.112.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.111.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.110.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.109.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.108.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.107.4 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.107.3 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.107.2 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.107.1 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.106.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.105.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.104.0 lib/active_merchant/billing/gateways/usa_epay.rb