lib/active_merchant/billing/gateways/pay_junction.rb in activemerchant-1.114.0 vs lib/active_merchant/billing/gateways/pay_junction.rb in activemerchant-1.116.0
- old
+ new
@@ -337,12 +337,11 @@
response = parse(ssl_post(url, post_data(action, parameters)))
Response.new(successful?(response), message_from(response), response,
test: test?,
- authorization: response[:transaction_id] || parameters[:transaction_id]
- )
+ authorization: response[:transaction_id] || parameters[:transaction_id])
end
def successful?(response)
SUCCESS_CODES.include?(response[:response_code]) || response[:query_status] == true
end
@@ -365,10 +364,10 @@
params[:password] = @options[:password]
end
params[:version] = API_VERSION
params[:transaction_type] = action
- params.reject { |k, v| v.blank? }.collect { |k, v| "dc_#{k}=#{CGI.escape(v.to_s)}" }.join('&')
+ params.reject { |_k, v| v.blank? }.collect { |k, v| "dc_#{k}=#{CGI.escape(v.to_s)}" }.join('&')
end
def parse(body)
# PayJunction uses the Field Separator ASCII character to separate key/val
# pairs in the response. The <FS> character's octal value is 034.