Sha256: 4f793c8b160e58ff088ca2795c8bd6f036a4a1c08a3541f54a5264d7ce6cfec6

Contents?: true

Size: 660 Bytes

Versions: 17

Compression:

Stored size: 660 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) { 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

17 entries across 17 versions & 1 rubygems

Version Path
activemerchant-1.79.2 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.79.1 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.79.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.78.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.77.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.76.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.75.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.74.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.73.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.72.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.71.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.70.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.69.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.68.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.67.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.66.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.65.0 lib/active_merchant/billing/gateways/quickpay.rb