lib/active_merchant/billing/gateways/paymill.rb in activemerchant-1.112.0 vs lib/active_merchant/billing/gateways/paymill.rb in activemerchant-1.113.0

- old
+ new

@@ -111,11 +111,11 @@ def response_from(raw_response) parsed = JSON.parse(raw_response) options = { authorization: authorization_from(parsed), - test: (parsed['mode'] == 'test'), + test: (parsed['mode'] == 'test') } succeeded = (parsed['data'] == []) || (parsed['data']['response_code'].to_i == 20000) Response.new(succeeded, response_message(parsed), parsed, options) end @@ -355,13 +355,13 @@ @message = parsed['error']['message'] end def handle_response_correct_parsing @message = parsed['transaction']['processing']['return']['message'] - @options[:authorization] = parsed['transaction']['identification']['uniqueId'] if @succeeded = is_ack? + @options[:authorization] = parsed['transaction']['identification']['uniqueId'] if @succeeded = ack? end - def is_ack? + def ack? parsed['transaction']['processing']['result'] == 'ACK' end end end end