Module 4 · Interview Prep: A Payment Gateway Lesson 19 of 54

Money Invariants for Payments

Five rules the gateway must keep, whatever fails.

1:42 clip38:26–40:09 in the full courseWatch on YouTube

Transcript

21 sentences · select one to jump there

Check your understanding

A payment of $89.50 was captured and a $50 refund went through. The shop now asks for a second $50 refund. What happens?

Choose one answer

Lesson notes

The rule

Every box you add must protect at least one invariant; if it protects nothing, leave it out