Jump to content

Creating Order with status Waiting Capture from Cart


Recommended Posts

Hi

I'm currently building an external payment module. As a part of the workflow, we will redirecting the user to our pages. However, the payment status will not be returned immediately. Our application will be invoking a callback url in pretashop tied to our module.

in order to update and validate the payment status, I wish to convert the Cart into an Order with the status "waiting capture". This will allow us to update the status to "Payment Error" or "Payment Accepted" later asynchronously.

However, I am unable to identify the exact function to do so. ValidateOrder seems to directy update the status to payment accepted.

Can someone point me to the docs to create an Order from cart with a custom status?

Link to comment
Share on other sites

  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...