Sha256: c945c7519b3c3d77192e1591090dbd31f2b858c260a75f40f22156f28093bc39

Contents?: true

Size: 734 Bytes

Versions: 21

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

21 entries across 21 versions & 3 rubygems

Version Path
swiss-activemerchant-1.0.6 lib/active_merchant/billing/gateways/usa_epay.rb
swiss-activemerchant-1.0.5 lib/active_merchant/billing/gateways/usa_epay.rb
swiss-activemerchant-1.0.4 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.137.0 lib/active_merchant/billing/gateways/usa_epay.rb
swiss-activemerchant-1.0.2 lib/active_merchant/billing/gateways/usa_epay.rb
swiss-activemerchant-1.0.1 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.133.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.131.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.130.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.129.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.126.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.125.0 lib/active_merchant/billing/gateways/usa_epay.rb
archetype2142_activemerchant-1.124.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.124.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.123.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.121.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.120.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.119.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.118.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.117.0 lib/active_merchant/billing/gateways/usa_epay.rb