We provide a custom made service for just drop us a line.
We would be glad to have feedback from you.
A payment timeout is not a retry problem until you know whether the money moved. We design the gateway around idempotency, reconciliation and a clear answer to who owes whom after a failure.
Integration work between your systems and third-party APIs, most often payments. It covers the interface contract, the behaviour when a call fails or times out, the reconciliation between provider and ledger, and the monitoring that tells you when the two disagree.
When a timeout leaves two versions of the truth
Why this is harder than it looks
A payment either happens or it does not, and the network is allowed to be unsure. Every gateway integration therefore lives with a gap where the request left and the answer never came back.
Most integrations handle that gap by guessing — retry, or mark as failed. Both guesses cost money: a retry can charge twice, a failed mark can leave a paid order unfulfilled.
So the design work is idempotency and reconciliation, settled before the first line of code, because neither can be retrofitted into a live ledger.
Where a payment fails twice
Figure 1 — Where a payment flow breaks, the control that prevents it, and the evidence it leaves
Figure 2 — The layers that have to hold for API & Payment Gateways
What you get
Who signs off each layer
Finance owns settlement rules, delivery owns the route design and engineering owns idempotency and monitoring.
Figure 3 — Who owns each payment control
What we need before we start
How it usually runs
Questions we get asked
Can we add a second gateway later?
Yes, if the abstraction exists now. Retrofitted, the retry and reconciliation logic usually lives inside the first provider’s assumptions, and the second provider breaks them.
What about refunds and partial captures?
They are where most of the edge cases live, and the reason the state machine has to be explicit rather than derived from whatever the gateway last returned.
Is PCI our problem?
The scope decision is. Tokenised hosted fields shrink it dramatically, but somebody still has to sign that decision and keep it true after the next release.
Where this has been applied
Reading that goes with this
How to start
Bring the last payment dispute and the logs from both sides. Get in touch.
We provide a custom made service for just drop us a line.
We would be glad to have feedback from you.