Short write-ups on problems I've solved and things I've learned along the way.
Why the “is this slot free?” check belongs in the database, and the tsrange gotcha I hit on the way.
A redirect, a webhook and a server-side check can all report the same payment. Here’s how each one gets settled exactly once.