Vazark Posted November 17, 2021 Share Posted November 17, 2021 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 More sharing options...
Ress Posted March 5, 2022 Share Posted March 5, 2022 Hi, Second parameter of validateOrder method is the order state id. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now