Sha256: 5462c41e9d8757a709de21ca294525cbe4319cb65ba5cfd5e14fee1f7de1b706

Contents?: true

Size: 738 Bytes

Versions: 93

Compression:

Stored size: 738 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={})
        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

93 entries across 92 versions & 7 rubygems

Version Path
activemerchant-1.50.0 lib/active_merchant/billing/gateways/usa_epay.rb
tanga_activemerchant-1.38.0.1 lib/active_merchant/billing/gateways/usa_epay.rb
tanga_activemerchant-1.38.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.49.0 lib/active_merchant/billing/gateways/usa_epay.rb
tanga_activemerchant-1.37.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.48.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.47.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.46.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.45.0 lib/active_merchant/billing/gateways/usa_epay.rb
aktivemerchant-2.0.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.44.1 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.44.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.43.3 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.43.1 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.43.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.42.9 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.42.8 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.42.7 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.42.6 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.42.5 lib/active_merchant/billing/gateways/usa_epay.rb