STEP 10 OF 10 · EXTERNAL EFFECTS
Pass the key along when the effect is elsewhere
If the money moves at a card provider instead of in your database, you cannot share a transaction with it. Send the same key with the request instead; providers that support idempotency keys return the first result for a repeated key rather than charging again. They only remember keys for a limited time (often a day or more), so retries must arrive within that window.
For effects with no such support, such as some email providers, record "sent" after the call and accept that a crash in between can still cause a rare duplicate. Say that trade-off out loud.
Why it matters. Idempotency has to reach the system that performs the effect. A key that stops at your own database cannot protect a charge made somewhere else.