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

The Payment API and Idempotency Keys

Create, capture, void and refund, with a key on every write.

2:20 clip40:09–42:29 in the full courseWatch on YouTube

Transcript

34 sentences · select one to jump there

Check your understanding

A shop retries a create call with the same idempotency key but a different amount. What does the gateway do?

Choose one answer

Lesson notes

The rule

Every write carries a key, in both directions: the shop's key into us, our reference out to the processor