diff --git a/controllers/front/return.php b/controllers/front/return.php index 2d16c99dd..dfa6a7979 100644 --- a/controllers/front/return.php +++ b/controllers/front/return.php @@ -204,12 +204,7 @@ protected function processGetStatus() $transactionId = $dbPayment['transaction_id'] ?: Tools::getValue('transaction_id'); - if (!$dbPayment || !isset($transactionId)) { - exit(json_encode([ - 'success' => false, - ])); - } - if (!isset($dbPayment['cart_id']) || !Validate::isLoadedObject($cart = new Cart($dbPayment['cart_id']))) { + if (!isset($dbPayment) || !\Validate::isLoadedObject($cart = new Cart((int) Tools::getValue('cart_id')))) { exit(json_encode([ 'success' => false, ]));