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