From 1c0f9e332229f5d63c6a0615bf397f98c9a4d021 Mon Sep 17 00:00:00 2001 From: Alma Malambo Date: Tue, 26 Nov 2024 10:05:48 -0600 Subject: [PATCH] DLocal: Update void response Add to_s on response['status_code'] in success_from --- lib/active_merchant/billing/gateways/d_local.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/active_merchant/billing/gateways/d_local.rb b/lib/active_merchant/billing/gateways/d_local.rb index de64520cb3d..97c4d55d410 100644 --- a/lib/active_merchant/billing/gateways/d_local.rb +++ b/lib/active_merchant/billing/gateways/d_local.rb @@ -245,7 +245,7 @@ def success_from(action, response) return false unless response['status_code'] if action == 'void' - response['status_code'] == '400' && response['status'] == 'CANCELLED' + response['status_code'].to_s == '400' && response['status'] == 'CANCELLED' else %w[100 200 400 600 700].include? response['status_code'].to_s end