I’m working on a payment system (Mollie). I want the inventory of a product to go down after every order. So I added a workflow to do that, but of course, it only needs to happen when the order is paid. The mollie/payment API sends back this information correctly (payment status changes from open to paid in my database after it is paid successfully).
However, when I add the condition “only when step 1 (create order)’s status is paid", it does not work. It simply doesn’t change the inventory, however without the “only when” condition, it works (so the inventory goes down, but of course I just want that to happen if the order is paid/completed). Am I using the wrong approach here? Or did I make an error? I really hope someone has a clue, because I don’t…
It might be that the create payment part of your workflow triggers and the user starts payment, but the subsequent actions in your workflow continue before the payment is completed.