A user clicks “Pay” twice by accident within milliseconds of each other.
Both requests hit your server at the same time.
How do you prevent them from being charged twice?
A user clicks “Pay” twice by accident within milliseconds of each other.
Both requests hit your server at the same time.
How do you prevent them from being charged twice?