All projects

Making checkout payments reliable

Redesigned payment retries and idempotency for a high-traffic checkout, cutting failed orders by 38%.

Year
2025
Role
Backend engineer
Stack
GoPostgreSQLKafka

Example project. This is placeholder content that shows how a case study looks. Replace it with a real project, or delete this file.

The problem

Around 2% of checkouts failed during traffic peaks. Most failures were timeouts between our service and the payment provider, and the automatic retries occasionally charged a customer twice.

What I did

  • Introduced idempotency keys for every payment attempt, so a retry can never create a second charge.
  • Moved retries out of the request path into a queue with exponential backoff.
  • Added dashboards and alerts for payment latency, so the on-call engineer sees trouble before customers do.

Results

Failed orders dropped by 38% in the first month and duplicate charges went to zero. The retry pattern became the default for other services that talk to external providers.