Jump to content

Creating an order with WebService (Payment error)


Recommended Posts


How do you create an order if cart object does not include shipping price with WebService?

What happens is prices don't match, payment module fails to validate order, sends out payment error email to the user. Module is ps_cashondelivery, tried codfee module too.

Tried to work around this by giving incorrect user email from the start to catch error email, updating total price with shipping (newly created order has it), deleting order_history error, setting correct email for the user, updating order_state to order_state that I created (with parameter send_email = 1) and the whole thing still fails because the email template does not have the required data (most of the data are {placeholder} in the sent email, only validateOrder method has the full data for the email which is only executed when I am creating a order for the first time) 

Also, current_state parameter is ignored when creating a new order.  

So what are my options? Can't edit any of PrestaShop files 


Share this post

Link to post
Share on other sites

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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More