lib/active_merchant/billing/gateways/paymill.rb in activemerchant-1.105.0 vs lib/active_merchant/billing/gateways/paymill.rb in activemerchant-1.106.0
- old
+ new
@@ -110,12 +110,12 @@
end
def response_from(raw_response)
parsed = JSON.parse(raw_response)
options = {
- :authorization => authorization_from(parsed),
- :test => (parsed['mode'] == 'test'),
+ authorization: authorization_from(parsed),
+ test: (parsed['mode'] == 'test'),
}
succeeded = (parsed['data'] == []) || (parsed['data']['response_code'].to_i == 20000)
Response.new(succeeded, response_message(parsed), parsed, options)
end
@@ -179,10 +179,10 @@
response_for_save_from(raw_response)
end
def response_for_save_from(raw_response)
- options = { :test => test? }
+ options = { test: test? }
parser = ResponseParser.new(raw_response, options)
parser.generate_response
end