Talk to an engineer
Whether you have a full brief or only a rough idea, send it over. Every inquiry goes straight to our team.
Send us a message
Checkout Reliability: Designing for the Moment of Payment
9 Oct 20262 min read
A project-type walkthrough of payment work: states, retries, idempotency and making the riskiest screen in commerce boring.
Checkout Reliability: Designing for the Moment of Payment
This is a description of a project type we work on: the few screens where a failure costs real money, and where the difference between a good and a bad implementation is measured in dropped orders.
The Challenge
Payments fail for reasons the application does not control: timeouts, declined cards, connections that drop mid-request, users who press twice. When the system cannot tell "not completed" from "completed but not reported", the answer is either a double charge or a lost order, and both are expensive.
Our Approach
Discovery modelled the payment as a state machine: initiated, authorised, captured, failed, refunded, with every transition recorded and every external callback verified. The team agreed in advance what the system must do at each ambiguous point, before writing the code that meets them.
Solution
A checkout with explicit states and clear messaging at each, server-side confirmation of every payment result rather than trusting the browser, idempotency keys so a retried request cannot capture twice, and an operations view that surfaces stuck payments for manual resolution within minutes rather than at reconciliation time.
Technology
Integration through the payment provider's API with webhooks verified by signature, a queue for the follow-up work that must not be lost, and audit records for every money movement.
Implementation
Released with monitoring on the payment path from day one: failure rates, stuck states and retry outcomes visible to the team, and the ambiguous paths exercised deliberately before launch.
Results
Completion and failure-handling times are measured against the goals agreed at discovery, and published only where verified and approved.
Worried about your payment path? Tell us about your project and we will walk the state machine with you.
Project details in this article are deliberately general. Client names, verified results and references are published only with the client's approval.
