Module 4 · Interview Prep: A Payment Gateway Lesson 19 of 54
Money Invariants for Payments
Five rules the gateway must keep, whatever fails.
Transcript
21 sentences · select one to jump thereCheck 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?
Lesson notes
The rule
Every box you add must protect at least one invariant; if it protects nothing, leave it out