Sha256: 030dfe0f3a17c8b5a5c82844c2ead01c358d694f3f6203d47cc4d0366a9ee8ea
Contents?: true
Size: 659 Bytes
Versions: 19
Compression:
Stored size: 659 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
19 entries across 19 versions & 2 rubygems