Module 4 · Interview Prep: A Payment Gateway Lesson 23 of 54
Webhooks and the Double-Entry Ledger
Verify, dedupe and order incoming webhooks, deliver outgoing ones at least once, and balance every capture.
Transcript
31 sentences · select one to jump thereCheck your understanding
A payment has been captured. Then a late webhook arrives saying it is authorized. What happens?
Lesson notes
The rule
Webhooks are hints, not orders: verify the signature, drop repeats, check the move, then fetch the current state