From e9aec20cd64d15239f350c3216cb486f86f8c733 Mon Sep 17 00:00:00 2001 From: jcuervas Date: Mon, 5 Jun 2023 23:14:35 +0200 Subject: [PATCH] add state new in Payment Complete.php --- Controller/Payment/Complete.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Controller/Payment/Complete.php b/Controller/Payment/Complete.php index 8ecc1f0..c3cd840 100644 --- a/Controller/Payment/Complete.php +++ b/Controller/Payment/Complete.php @@ -125,7 +125,7 @@ public function execute() $order = $this->orderFactory->create()->loadByIncrementId($data['orderId']); $payment = $order->getPayment(); $payment->setLastTransId($data['id']); - $order->setStatus($this->moduleConfig->getConfirmedStatus())->setState(Order::STATE_PROCESSING); + $order->setStatus($this->moduleConfig->getConfirmedStatus())->setState(Order::STATE_NEW); $order->setData('monei_payment_id', $data['id']); $this->orderRepository->save($order); return $this->resultRedirectFactory->setPath('checkout/onepage/success', ['_secure' => true]);