System Design · Senior · Question 33 of 75

Why can't a successful redirect from the payment page be treated as payment confirmation?

Explanation

The user may close the tab or open the success URL manually. The source of truth is a server-side webhook from the provider with signature verification, plus a status check via the API. Webhook handling must be idempotent.

Further reading

Problem with a question

System Design · Senior · question 33

Test yourself

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

Take this quiz