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.

2:21 clip48:39–51:01 in the full courseWatch on YouTube

Transcript

31 sentences · select one to jump there

Check your understanding

A payment has been captured. Then a late webhook arrives saying it is authorized. What happens?

Choose one answer

Lesson notes

The rule

Webhooks are hints, not orders: verify the signature, drop repeats, check the move, then fetch the current state