Sha256: 6782dad16cb3fe13335a29b87f35c57deb69b1b307c814b641d42175c7efeb24

Contents?: true

Size: 658 Bytes

Versions: 35

Compression:

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

35 entries across 35 versions & 3 rubygems

Version Path
swiss-activemerchant-1.0.6 lib/active_merchant/billing/gateways/quickpay.rb
swiss-activemerchant-1.0.5 lib/active_merchant/billing/gateways/quickpay.rb
swiss-activemerchant-1.0.4 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.137.0 lib/active_merchant/billing/gateways/quickpay.rb
swiss-activemerchant-1.0.2 lib/active_merchant/billing/gateways/quickpay.rb
swiss-activemerchant-1.0.1 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.133.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.131.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.130.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.129.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.126.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.125.0 lib/active_merchant/billing/gateways/quickpay.rb
archetype2142_activemerchant-1.124.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.124.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.123.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.121.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.120.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.119.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.118.0 lib/active_merchant/billing/gateways/quickpay.rb
activemerchant-1.117.0 lib/active_merchant/billing/gateways/quickpay.rb