Back to All Posts

#billing

tuckerl.ee

Building thoughtful software with AI.Notes from the systems behind the work.

Also new

article

Billing mirror deleted, seat cap left with three opinions

Swapping a local copy of billing state for plan entitlements in the session was the right call, but it left the free-tier seat cap answered by three pieces of code that disagree, a random retry key on customer creation, signup that now depends on the payment provider, and billing endpoints that trust whatever organization the request names.

article

Paying customers matched by email, even the addresses the billing code made up itself

The lookup that decided whether an organization already had a payment customer searched by an email my code sometimes guessed or generated, and could hand one org's billing record to another. I moved identity onto the identity provider's org ID and tied retries to it, but the same commit left an ignored retry flag, a delete check that reads error wording, a gutted seat counter, and no tests.