lib/active_merchant/billing/gateways/quickpay/quickpay_v10.rb in activemerchant-1.105.0 vs lib/active_merchant/billing/gateways/quickpay/quickpay_v10.rb in activemerchant-1.106.0
- old
+ new
@@ -152,12 +152,12 @@
rescue JSON::ParserError
response = json_error(response)
end
Response.new(success, message_from(success, response), response,
- :test => test?,
- :authorization => authorization_from(response)
+ test: test?,
+ authorization: authorization_from(response)
)
end
def authorization_from(response)
if response['token']
@@ -213,11 +213,11 @@
post[:card][:expiration] = expdate(credit_card_or_reference)
post[:card][:issued_to] = credit_card_or_reference.name
end
if options[:three_d_secure]
- post[:card][:cavv]= options.dig(:three_d_secure, :cavv)
+ post[:card][:cavv] = options.dig(:three_d_secure, :cavv)
post[:card][:eci] = options.dig(:three_d_secure, :eci)
post[:card][:xav] = options.dig(:three_d_secure, :xid)
end
end
@@ -251,15 +251,15 @@
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
+ 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)