lib/active_merchant/billing/gateways/payway.rb in activemerchant-1.28.0 vs lib/active_merchant/billing/gateways/payway.rb in activemerchant-1.29.0

- old
+ new

@@ -84,17 +84,14 @@ } def initialize(options={}) @options = options - options[:merchant] ||= 'TEST' if test? - + @options[:merchant] ||= 'TEST' if test? requires!(options, :username, :password, :merchant, :pem) - @options[:eci] ||= 'SSL' - - super + @options[:eci] ||= 'SSL' end def authorize(amount, payment_method, options={}) requires!(options, :order_id) @@ -202,13 +199,9 @@ rescue ActiveMerchant::ResponseError => e raise unless e.response.code == '403' return Response.new(false, "Invalid credentials", {}, :test => test?) rescue ActiveMerchant::ClientCertificateError return Response.new(false, "Invalid certificate", {}, :test => test?) - end - - def test? - (@options[:test] || super) end end end end