lib/active_merchant/billing/gateways/s5.rb in activemerchant-1.114.0 vs lib/active_merchant/billing/gateways/s5.rb in activemerchant-1.116.0

- old
+ new

@@ -20,16 +20,16 @@ 'refund' => 'CC.RF', 'void' => 'CC.RV', 'store' => 'CC.RG' } - def initialize(options={}) + def initialize(options = {}) requires!(options, :sender, :channel, :login, :password) super end - def purchase(money, payment, options={}) + def purchase(money, payment, options = {}) request = build_xml_request do |xml| add_identification(xml, options) add_payment(xml, money, 'sale', options) add_account(xml, payment) add_customer(xml, payment, options) @@ -37,20 +37,20 @@ end commit(request) end - def refund(money, authorization, options={}) + def refund(money, authorization, options = {}) request = build_xml_request do |xml| add_identification(xml, options, authorization) add_payment(xml, money, 'refund', options) end commit(request) end - def authorize(money, payment, options={}) + def authorize(money, payment, options = {}) request = build_xml_request do |xml| add_identification(xml, options) add_payment(xml, money, 'authonly', options) add_account(xml, payment) add_customer(xml, payment, options) @@ -58,20 +58,20 @@ end commit(request) end - def capture(money, authorization, options={}) + def capture(money, authorization, options = {}) request = build_xml_request do |xml| add_identification(xml, options, authorization) add_payment(xml, money, 'capture', options) end commit(request) end - def void(authorization, options={}) + def void(authorization, options = {}) request = build_xml_request do |xml| add_identification(xml, options, authorization) add_payment(xml, nil, 'void', options) end @@ -87,10 +87,10 @@ end commit(request) end - def verify(credit_card, options={}) + def verify(credit_card, options = {}) MultiResponse.run(:use_first_response) do |r| r.process { authorize(100, credit_card, options) } r.process(:ignore_result) { void(r.authorization, options) } end end