Skip to content

Commit

Permalink
PagBank 😍 Magento
Browse files Browse the repository at this point in the history
  • Loading branch information
elisei committed Mar 20, 2024
1 parent 237a948 commit 69a8161
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Controller/Notification/All.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,16 @@ public function execute()

$psData = $this->json->unserialize($response);

if (!isset($psData['id'])) {
return $this->createResult(
200,
[
'error' => 200,
'message' => __('Not apply.'),
]
);
};

$psPaymentId = $psData['id'];

$this->logger->debug([
Expand Down

0 comments on commit 69a8161

Please sign in to comment.