Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GytisZum committed Jul 25, 2024
1 parent c2b7205 commit 2e3bc85
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions controllers/front/notify.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,21 +60,21 @@ public function postProcess()
die($this->module->l('Error. Insecure cart', self::FILENAME));
}

// $lockResult = $this->applyLock(sprintf(
// '%s-%s',
// $cartId,
// $secureKey
// ));

// if (!SaferPayConfig::isVersion17()) {
// if ($lockResult > 200) {
// die($this->module->l('Lock already exists', self::FILENAME));
// }
// } else {
// if (!$lockResult->isSuccessful()) {
// die($this->module->l('Lock already exists', self::FILENAME));
// }
// }
$lockResult = $this->applyLock(sprintf(
'%s-%s',
$cartId,
$secureKey
));

if (!SaferPayConfig::isVersion17()) {
if ($lockResult > 200) {
die($this->module->l('Lock already exists', self::FILENAME));
}
} else {
if (!$lockResult->isSuccessful()) {
die($this->module->l('Lock already exists', self::FILENAME));
}
}

if ($cart->orderExists()) {
$order = new Order($this->getOrderId($cartId));
Expand Down

0 comments on commit 2e3bc85

Please sign in to comment.