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

- old
+ new

@@ -66,11 +66,11 @@ add_amount(post, money, options) add_additional_params(:refund, post, options) commit(synchronized_path("/payments/#{identification}/refund"), post) 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 @@ -153,12 +153,11 @@ response = json_error(response) end Response.new(success, message_from(success, response), response, test: test?, - authorization: authorization_from(response) - ) + authorization: authorization_from(response)) end def authorization_from(response) if response['token'] response['token'].to_s @@ -262,10 +261,10 @@ } mapped end def format_order_id(order_id) - truncate(order_id.to_s.gsub(/#/, ''), 20) + truncate(order_id.to_s.delete('#'), 20) end def headers auth = Base64.strict_encode64(":#{@options[:api_key]}") {