When I started building a SaaS from scratch, I adopted the Stripe Billing product for managing plans and subscriptions. At that moment (roughly a year ago) I did not fully realise that this was a new addition to the Stripe product line.
One year down the road, I can write this decision and support it with technical details on how I implemented Stripe Billing and integrated it with the Checkly backend.
Key takeaways are:
-
Keep coupling minimal. I hardcode our pricing and plans into the pricing page.
-
Choose good ID's and a good structure to segment product and pricing. This enables grandfathering customers and adding ad hoc new products.
-
Use one or two webhooks to keep things in sync. We use just one webhook.
See all details with code examples in the linked blog post.


