Backend Developer

Case File: Paid Twice

A customer taps Pay twice and is charged twice. Write the payment processor with idempotency keys: a repeated key returns the first result and changes nothing, even when the amount differs or the first attempt was declined. Count the repeats, protect the balances, and run it on requests you cannot see. The accounts and payments are generated for you alone.

50 min

Case File: Paid Twice

A customer taps Pay twice and is charged twice. Write the payment processor with idempotency keys: a repeated key returns the first result and changes nothing, even when the amount differs or the first attempt was declined. Count the repeats, protect the balances, and run it on requests you cannot see. The accounts and payments are generated for you alone.

In this lesson:

  • api
  • idempotency
  • payments
  • reliability
  • python
  • case-file

๐Ÿ”’ This lesson is part of a paid plan

This lesson is part of the Pro plan. Upgrade to unlock the full lesson, the labs and the exam.

Upgrade Now

This lesson is part of a paid plan

Upgrade to Pro to unlock this course, its labs and its exam.

View Pricing Plans