diff --git a/controllers/front/notify.php b/controllers/front/notify.php index 61e5811a..584dc479 100755 --- a/controllers/front/notify.php +++ b/controllers/front/notify.php @@ -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 @@ -164,8 +162,6 @@ public function postProcess() $orderStatusService->capture($order); } } catch (Exception $e) { - $this->releaseLock(); - PrestaShopLogger::addLog( sprintf( '%s has caught an error: %s', diff --git a/controllers/front/return.php b/controllers/front/return.php index 40066b1f..f8e34029 100755 --- a/controllers/front/return.php +++ b/controllers/front/return.php @@ -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), @@ -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',