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