0

Magento 2 I have quote data but order not created transaction completed all done but order not created.So I am trying to create order by using quote data.

Can we convert quote data to order by loading quote id.For all order it is paypal payment?

Can any one tell me better process.

1 Answer 1

0

Using \Magento\Quote\Api\CartManagementInterface you can call $order = $this->cartManagementInterface->submit($quote);, then you would probably need to manually up the LastRealOrderId by using the checkoutSession $this->checkoutSession ->setLastOrderId($order->getId()) ->setLastRealOrderId($order->getIncrementId());

Hope it helped!

1
  • Quote already submitted and it stored in to quote tables.I have that quote id can you please explain little bit more
    – Pawankumar
    Commented Apr 9, 2019 at 8:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.