- Input
- A fictional online course site wants a student enrolled the moment a payment goes through.
- Assumption
- The payment provider can send a webhook when a payment succeeds.
What happens
- The provider sends a message to the course site's webhook address.
- The site checks the message is genuine.
- The site adds the student to the course.
- The site replies that it received the message.
- Result
- The student gets access without anyone checking the payment list.
- Where it stops
- If the site is down when the message is sent, the provider's retry rules decide what happens next.