Payments & Fintech
Stripe

A Stripe session that is not allowed to outlive the slot it reserved: 31 minutes against 40

Counting completed payments oversells a capped discount. Counting checkout starts burns slots on abandoned tabs. The fix is a reservation whose lifetime has to be longer than the Checkout session's, and the two constants have to be ordered. Tagged with stripe, postgres, typescript, webdev.
dev.to
October 12, 2026
7
A Stripe session that is not allowed to outlive the slot it reserved: 31 minutes against 40
WHAT HAPPENED
CogniPrep sells practice for hiring assessments, and some of that is bought by schools and colleges on behalf of a cohort rather than by one candidate with a card. A hundred students open checkout on the last remaining slot, all hundred pay, all hundred succeed. The cap was enforced against a number that was correct when each of them read it. That slot is gone forever, and there is nothing in the system that will ever give it back. Areservedrow stops counting against the cap the moment itsexpires_atpasses, with nobody doing anything.
Continue reading from the original publisher for the complete report and source context.
READ ORIGINAL STORY