lib/active_merchant/billing/gateways/mundipagg.rb in activemerchant-1.83.0 vs lib/active_merchant/billing/gateways/mundipagg.rb in activemerchant-1.84.0

- old
+ new

@@ -245,18 +245,18 @@ avs_result: AVSResult.new(code: response['some_avs_response_key']), cvv_result: CVVResult.new(response['some_cvv_response_key']), test: test?, error_code: error_code_from(response) ) - rescue ResponseError => e - message = get_error_message(e) - return Response.new( - false, - "#{STANDARD_ERROR_MESSAGE_MAPPING[e.response.code]} #{message}", - parse(e.response.body), - test: test?, - error_code: STANDARD_ERROR_CODE_MAPPING[e.response.code], - ) + rescue ResponseError => e + message = get_error_message(e) + return Response.new( + false, + "#{STANDARD_ERROR_MESSAGE_MAPPING[e.response.code]} #{message}", + parse(e.response.body), + test: test?, + error_code: STANDARD_ERROR_CODE_MAPPING[e.response.code] + ) end def success_from(response) %w[pending paid processing canceled active].include? response['status'] end