System Design Lab / Workbench / Challenges
Stop a duplicate payment
A customer tapped Pay ₹500 once, but ₹500 was taken twice. Can you stop the second one?
Start the challenge →What breaks
- Customer taps Pay ₹500
- Bank takes ₹500 (receipt #1)
- The "paid" reply is lost on the way back
- The app hears nothing and tries again
- Bank takes ₹500 again (receipt #2) ✗
Your job: keep the automatic retry (it helps when the signal drops), but make sure a repeat does not take the money again.
What you do
- Press Run and watch the money get taken twice.
- Tell the bank how to spot a repeat of the same payment.
- Run again: the money should be taken once, and the customer still sees "paid".
- Pass the hidden checks too: a new payment still works, two quick taps pay once, and a repeat with a changed amount is refused.
Runs in your browser. No sign-up needed. Made-up IDs; you can share a link that replays your attempt.