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) {