Subscription & Billing Platform for US SaaS Company
Built a custom billing and subscription management platform for a mid-stage US SaaS company that had outgrown Stripe's native dashboard. The system handles plan management, usage-based metering, invoice generation, dunning workflows, and revenue reporting — all integrated with Stripe as the payment processor.
Primary stack components — see Architecture Decisions section for detail
Stripe had to remain the payment processor.
The biggest lesson was that billing logic is domain-specific in ways that are hard to anticipate.
Stripe handles the common cases well, but every company has edge cases that don't fit neatly into Stripe's model — things like custom contract terms, negotiated discounts that apply only to the base fee but not usage charges, or mid-cycle plan changes that coincide with a failed payment retry. We spent roughly 30% of the project timeline on proration and edge case handling alone. The reconciliation job was originally an afterthought but turned out to be essential for the finance team's confidence in the system. If we were starting over, we'd design the reconciliation layer from day one rather than bolting it on later.