API Design · Junior · Question 68 of 75

A user double-clicks 'Pay', and the client sends POST /payments twice. What's the risk and a common fix?

Explanation

Stripe popularized idempotency keys. Disabling the button helps too, but retries after timeouts still need server-side protection.

Further reading

Problem with a question

API Design · Junior · question 68

Test yourself

Take the API Design · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz