Skip to content

Commit

Permalink
leaving auto release only
Browse files Browse the repository at this point in the history
  • Loading branch information
GytisZum committed Apr 11, 2024
1 parent 2e232eb commit 6b4c002
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions controllers/front/notify.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ public function postProcess()
$updateOrderStatusAction = $this->module->getService(UpdateOrderStatusAction::class);
$updateOrderStatusAction->run((int) $orderId, (int) Configuration::get('SAFERPAY_PAYMENT_AUTHORIZED'));

$this->releaseLock();

if (!$assertResponseBody->getLiability()->getLiabilityShift() &&
in_array($order->payment, SaferPayConfig::SUPPORTED_3DS_PAYMENT_METHODS) &&
(int) Configuration::get(SaferPayConfig::PAYMENT_BEHAVIOR_WITHOUT_3D) === SaferPayConfig::PAYMENT_BEHAVIOR_WITHOUT_3D_CANCEL
Expand All @@ -164,8 +162,6 @@ public function postProcess()
$orderStatusService->capture($order);
}
} catch (Exception $e) {
$this->releaseLock();

PrestaShopLogger::addLog(
sprintf(
'%s has caught an error: %s',
Expand Down
4 changes: 0 additions & 4 deletions controllers/front/return.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,6 @@ public function postProcess()
$orderStatusService->capture(new Order($orderId));
}

$this->releaseLock();

Tools::redirect($this->context->link->getModuleLink(
$this->module->name,
$this->getSuccessControllerName($isBusinessLicence, $fieldToken),
Expand All @@ -194,8 +192,6 @@ public function postProcess()
true
));
} catch (Exception $e) {
$this->releaseLock();

PrestaShopLogger::addLog(
sprintf(
'Failed to assert transaction. Message: %s. File name: %s',
Expand Down

0 comments on commit 6b4c002

Please sign in to comment.