I developed a Shopify app for one of my customers that uses the orders/create webhook to save data into a database through some APIs. It's very important to save that data even if the payment process failed.
So, I have two questions.
1. Is the orders/create webhook triggered even if that payment fails or should I use another webhook?
2. When is the orders/create webhook triggered? When the user submits the order, before the actual payment happens or after the order is submitted and the payment is successfully processed?
Solved! Go to the solution
This is an accepted solution.
Hi Klopp, the orders/create webhook is fired when the order is created and before the payment is processed. So if the payment processing fails, the webhook will still be delivered.