Each one is a service that passes its tests and still fails in production. Pick one.
Three customers get a confirmation for one item. The visible tests pass. Work out what production does that the tests do not.
Never confirm more orders than there is stock.
Orders for different products must not wait for each other.
A declined card puts the item back in stock.