diff --git a/controllers/front/notify.php b/controllers/front/notify.php index 04fb8da6..41d32347 100755 --- a/controllers/front/notify.php +++ b/controllers/front/notify.php @@ -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));