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

- old
+ new

@@ -19,17 +19,17 @@ '06' => STANDARD_ERROR_CODE[:processing_error], '14' => STANDARD_ERROR_CODE[:invalid_number], '54' => STANDARD_ERROR_CODE[:expired_card] } - def initialize(options={}) + def initialize(options = {}) ActiveMerchant.deprecated('IPP gateway is now named Bambora Asia-Pacific') requires!(options, :username, :password) super end - def purchase(money, payment, options={}) + def purchase(money, payment, options = {}) commit('SubmitSinglePayment') do |xml| xml.Transaction do xml.CustRef options[:order_id] add_amount(xml, money) xml.TrnType '1' @@ -38,11 +38,11 @@ xml.TrnSource options[:ip] end end end - def authorize(money, payment, options={}) + def authorize(money, payment, options = {}) commit('SubmitSinglePayment') do |xml| xml.Transaction do xml.CustRef options[:order_id] add_amount(xml, money) xml.TrnType '2' @@ -51,20 +51,20 @@ xml.TrnSource options[:ip] end end end - def capture(money, authorization, options={}) + def capture(money, authorization, options = {}) commit('SubmitSingleCapture') do |xml| xml.Capture do xml.Receipt authorization add_amount(xml, money) add_credentials(xml) end end end - def refund(money, authorization, options={}) + def refund(money, authorization, options = {}) commit('SubmitSingleRefund') do |xml| xml.Refund do xml.Receipt authorization add_amount(xml, money) add_credentials(xml)