Sha256: b5224c0198c4bb43eb046e92be5606301582e42efaf1a35434d021bf5223419e

Contents?: true

Size: 733 Bytes

Versions: 19

Compression:

Stored size: 733 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

19 entries across 19 versions & 2 rubygems

Version Path
activemerchant-1.103.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.102.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.101.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.100.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.99.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.98.0 lib/active_merchant/billing/gateways/usa_epay.rb
active_accountability_merchant-1.97.1 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.97.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.96.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.95.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.94.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.93.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.92.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.91.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.90.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.89.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.88.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.87.0 lib/active_merchant/billing/gateways/usa_epay.rb
activemerchant-1.86.0 lib/active_merchant/billing/gateways/usa_epay.rb