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

- old
+ new

@@ -201,11 +201,11 @@ add_pair(post, :xref, authorization) add_remote_address(post, options) commit('CANCEL', post) end - def verify(creditcard, options={}) + def verify(creditcard, options = {}) MultiResponse.run(:use_first_response) do |r| r.process { authorize(100, creditcard, options) } r.process(:ignore_result) { void(r.authorization, options) } end end @@ -280,10 +280,10 @@ def add_threeds_required(post, options) add_pair(post, :threeDSRequired, options[:threeds_required] || @threeds_required ? 'Y' : 'N') end - def add_remote_address(post, options={}) + def add_remote_address(post, options = {}) add_pair(post, :remoteAddress, options[:ip] || '1.1.1.1') end def normalize_line_endings(str) str.gsub(/%0D%0A|%0A%0D|%0D/, '%0A')