Skip to main content
Journal
Architecture article

Idempotency in payment APIs

How an idempotency key prevents double charges when the client retries the call.

Sample text. This post came from the old Lab and holds the place until the real content arrives.

The client sends the idempotency key to the API, which passes on a single charge
Figure 1 · the path of the key

The problem

A short paragraph that says what the text answers and why it is worth reading.

What I did

Another paragraph with the decision, the cost and what was left out.

const key = order.id
await record(key)

Cited links

Share

LinkedInRSS

Liked it? Let's talk

Talk to me