Skip to content

Commit

Permalink
Merge pull request #17 from MONEI/version
Browse files Browse the repository at this point in the history
add state new in Payment Complete.php
  • Loading branch information
jcuervas authored Jun 5, 2023
2 parents adfca41 + e9aec20 commit 36a85e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Controller/Payment/Complete.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 36a85e5

Please sign in to comment.