Hi,
I’m not sure this issue could be related to your implementation or it’s totally woocommerce!
Add one item to cart, proceed to checkout, pay by card, then don’t pay and go back to website.
A new order will be created with “Pending” status but cart won’t be cleared.
Add one more item to the cart (cart will have now the previously ordered item + new item), then proceed to checkout, pay by card
Not enough stock validation will show up
But a new Order will be created!
So actually there is 2 issues, the cart not clearing from first order, then creating a second order while having not enough stock validation error,
Could you please advice, thank you