Skip to content

Commit

Permalink
PagBank 😍 Magento
Browse files Browse the repository at this point in the history
  • Loading branch information
elisei committed Oct 25, 2023
1 parent cb437da commit 92e8767
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Gateway/Response/FetchPaymentHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 92e8767

Please sign in to comment.