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

Version Path
yetanothernguyen-activemerchant-1.21.2 lib/active_merchant/billing/gateways/usa_epay.rb
yetanothernguyen-activemerchant-1.21.1 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.26.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.25.0 lib/active_merchant/billing/gateways/usa_epay.rb
jelaniharris-activemerchant-1.24.1 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.24.0 lib/active_merchant/billing/gateways/usa_epay.rb
tlconnor-activemerchant-1.23.3 lib/active_merchant/billing/gateways/usa_epay.rb
tlconnor-activemerchant-1.23.2 lib/active_merchant/billing/gateways/usa_epay.rb
tlconnor-activemerchant-1.23.1 lib/active_merchant/billing/gateways/usa_epay.rb
tlconnor-activemerchant-1.23.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.23.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.22.0 lib/active_merchant/billing/gateways/usa_epay.rb
yetanothernguyen-activemerchant-1.21.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.21.0 lib/active_merchant/billing/gateways/usa_epay.rb
tlconnor-activemerchant-1.20.4 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.20.4 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.20.3 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.20.2 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.20.1 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.20.0 lib/active_merchant/billing/gateways/usa_epay.rb