From 92e876759eab0ad833b83f70a346f072a8fb9f7a Mon Sep 17 00:00:00 2001 From: Elisei Date: Wed, 25 Oct 2023 10:11:55 -0300 Subject: [PATCH] =?UTF-8?q?PagBank=20=F0=9F=98=8D=20Magento?= 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 7b623b8..b7a26f1 100644 --- a/Gateway/Response/FetchPaymentHandler.php +++ b/Gateway/Response/FetchPaymentHandler.php @@ -166,7 +166,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) {