lib/active_merchant/billing/gateways/quickpay/quickpay_v10.rb in activemerchant-1.133.0 vs lib/active_merchant/billing/gateways/quickpay/quickpay_v10.rb in activemerchant-1.137.0

- old
+ new

@@ -151,13 +151,17 @@ response = response_error(e.response.body) rescue JSON::ParserError response = json_error(response) end - Response.new(success, message_from(success, response), response, + 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 @@ -249,18 +253,17 @@ def map_address(address) return {} if address.nil? requires!(address, :name, :address1, :city, :zip, :country) country = Country.find(address[:country]) - mapped = { + { name: address[:name], street: address[:address1], city: address[:city], region: address[:address2], zip_code: address[:zip], country_code: country.code(:alpha3).value } - mapped end def format_order_id(order_id) truncate(order_id.to_s.delete('#'), 20) end