@mirror79 I’ve tried your code, and it almost works, but when I try to end the payment process, the website says that is item is already out of stock and does not let e finish the order.
I think that it should remove the stock after the order is finished, but it is removing it before the process ends.
Do you know what can I do?