A marketplace we looked at authorized cards at checkout and captured at shipping. Most orders shipped in two days, so it worked for months.
Then backorders and pre-orders started to grow. About 4% of orders shipped 8 to 12 days after checkout. For those, the capture call came back with a generic decline-style error. The order service treated it as a temporary failure and retried for three days. Finance saw "paid" orders with no money, and support saw customers who had already been told it was on its way.
The cause was simple. An authorization is a hold, and issuers release holds. The window depends on the scheme, the MCC and the issuer, and for card-not-present it is often around 7 days. The gateway API has no field that says "this hold is dead", so the failure shows up late and looks like noise.
What fixed it:
- Store auth_expires_at next to the authorization, using the most conservative window you can find.
- A job at day 5 re-authorizes with the stored token if the order hasn't shipped yet. If that fails, the customer is asked to pay again before the parcel is packed, not after.
- Capture failures after expiry go to a separate queue, not the generic retry loop.
The lesson for us: a delayed-capture flow needs a clock, not just a status.
How do you handle long gaps between auth and capture? Re-auth, capture early and refund, or something else?
Payneteasy handles this kind of payment flow for merchants and PSPs — see how it works.
Top comments (2)
Storing auth_expires_at is the right move, and putting expired captures on their own queue instead of the generic retry loop is the part most teams miss. One thing to check on the day-5 re-auth: it is a merchant-initiated charge on a stored card, so send it with the stored-credential flags and the original network transaction id, otherwise some issuers treat it as a fresh card-not-present attempt and decline more often. With Stripe that means confirming off-session on the saved payment method from the first checkout. Do you see a higher decline rate on the re-auth than on the original authorization?
the part about capture failures going into the generic retry loop is the real bug imo, retrying a dead hold for 3 days just hides the problem. we kinda went the other way for long gaps: capture early and refund if the order falls apart, bc reauth with a stored token can fail at the worst moment and then you're chasing the customer anyway. the downside is refund fees and chargeback exposure depends of the scheme, so it's not free either. do you split the flow by ship date at checkout (preorder = capture now, in stock = auth/capture later) or keep one flow for everything?