lib/active_merchant/billing/gateways/checkout_v2.rb in swiss-activemerchant-1.0.1 vs lib/active_merchant/billing/gateways/checkout_v2.rb in swiss-activemerchant-1.0.2

- old
+ new

@@ -399,11 +399,11 @@ end succeeded = success_from(action, response) additional_data = { - request_endpoint:, + request_endpoint: request_endpoint, request_method: method, request_body: parse(request_body), response_http_code: @response_http_code } @@ -414,10 +414,10 @@ successful_response = succeeded && action == :purchase || action == :authorize avs_result = successful_response ? avs_result(response) : nil cvv_result = successful_response ? cvv_result(response) : nil authorization = authorization_from(response) unless action == :unstore body = action == :unstore ? { response_code: response.to_s } : response - response_code = (action == :refund && succeeded) ? '10000' : response.dig('response_code') + response_code = action == :refund && succeeded ? '10000' : response.dig('response_code') Response.new( succeeded, message_from(succeeded, response), body,