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

- old
+ new

@@ -164,11 +164,11 @@ # :yearly # :daily # :threshold Tells how many times to retry the transaction (if it fails) before contacting the merchant. # :comments Uh... comments # - def recurring(money, creditcard, options={}) + def recurring(money, creditcard, options = {}) ActiveMerchant.deprecated RECURRING_DEPRECATION_MESSAGE requires!(options, %i[periodicity bimonthly monthly biweekly weekly yearly daily], :installments, :order_id) options.update( @@ -182,11 +182,11 @@ ) commit(money, creditcard, options) end # Buy the thing - def purchase(money, creditcard, options={}) + def purchase(money, creditcard, options = {}) requires!(options, :order_id) options.update( ordertype: 'SALE' ) commit(money, creditcard, options) @@ -265,12 +265,11 @@ Response.new(successful?(response), response[:message], response, test: test?, authorization: response[:ordernum], avs_result: { code: response[:avs].to_s[2, 1] }, - cvv_result: response[:avs].to_s[3, 1] - ) + cvv_result: response[:avs].to_s[3, 1]) end def successful?(response) response[:approved] == 'APPROVED' end @@ -429,10 +428,10 @@ # <r_score></r_score> # <r_authresponse></r_authresponse> # <r_approved>APPROVED</r_approved> # <r_avs></r_avs> - response = {message: 'Global Error Receipt', complete: false} + response = { message: 'Global Error Receipt', complete: false } xml = REXML::Document.new("<response>#{xml}</response>") xml.root&.elements&.each do |node| response[node.name.downcase.sub(/^r_/, '').to_sym] = normalize(node.text) end