From 224cefd8ee78f8029e5b20cb47b6b28c198e21e4 Mon Sep 17 00:00:00 2001 From: Elisei Date: Wed, 25 Oct 2023 10:09:37 -0300 Subject: [PATCH] =?UTF-8?q?PagBank=20=F0=9F=98=8D=20Magento=20-=20Consulta?= =?UTF-8?q?=20de=20status:=20Erro=20em=20chave=20do=20response?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gateway/Response/FetchPaymentHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gateway/Response/FetchPaymentHandler.php b/Gateway/Response/FetchPaymentHandler.php index 911f267..fbec426 100644 --- a/Gateway/Response/FetchPaymentHandler.php +++ b/Gateway/Response/FetchPaymentHandler.php @@ -167,7 +167,7 @@ public function findForPaymentStatus($response, $charges) case self::RESPONSE_STATUS_CANCELED: case self::RESPONSE_STATUS_DECLINED: if ($isPix) { - $isTempCancel = $charge['summary']['paid'] === 0 ? 1 : 0; + $isTempCancel = $charge['amount']['summary']['paid'] === 0 ? 1 : 0; } if (!$isTempCancel && !$this->finalStatus) {