Sha256: fad0b95d421b3be731971f3566d05cf30911da1edc2b228efbbcf277fba102e7

Contents?: true

Size: 674 Bytes

Versions: 16

Compression:

Stored size: 674 Bytes

Contents

require 'rexml/document'
require 'digest/md5'

require 'active_merchant/billing/gateways/quickpay/quickpay_v10'
require 'active_merchant/billing/gateways/quickpay/quickpay_v4to7'

module ActiveMerchant #:nodoc:
  module Billing #:nodoc:
    class QuickpayGateway < Gateway
      self.abstract_class = true

      def self.new(options = {})
        options.fetch(:login) rescue raise ArgumentError.new("Missing required parameter: login")

        version = options[:login].to_i < 10000000 ? 10 : 7
        if version <= 7
          QuickpayV4to7Gateway.new(options)
        else
          QuickpayV10Gateway.new(options)     
        end
      end
      
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
activemerchant-1.64.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.63.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.62.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.61.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.60.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.59.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.58.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.57.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.56.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.55.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.54.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.53.0 lib/active_merchant/billing/gateways/quickpay.rb
start_activemerchant-1.50.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.52.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.51.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.50.0 lib/active_merchant/billing/gateways/quickpay.rb