7. Why should order fulfilment happen in a webhook handler rather than on the success page?
- The customer may never reach the success page, and some payments complete later
- Webhooks are faster than redirects in every case
- Success pages cannot read query strings
- Stripe forbids success pages
जवाब देखें
जवाब: The customer may never reach the success page, and some payments complete later
Events arrive even if the browser closes, and they cover asynchronous payment methods.
पाठ: Why Fulfil From Webhooks
9. Your handler receives the same event ID twice. What should it do?
- Return 500 so Stripe stops sending
- Fulfil the order a second time
- Recognise it as already processed and return 2xx without fulfilling again
- Delete the webhook endpoint
जवाब देखें
जवाब: Recognise it as already processed and return 2xx without fulfilling again
Deliveries are at least once, so duplicates are normal.
पाठ: Retries, Idempotent Handling and the CLI