Prompt
How do I set up recurring billing for a SaaS product without building it all myself?
Latest observation
You can avoid building recurring billing from scratch by using a billing platform (or “subscription billing” provider) that handles the hard parts: card storage, renewals, failed-payment retries, invoices, taxes, dunning, and often entitlements.
Best path for a SaaS
Most SaaS teams use this stack:
- Payments processor / billing platform:
- Stripe Billing (most common for startups and SaaS)
- Paddle (good if you want merchant-of-record and less tax/VAT work)
- Chargebee, Recurly, Maxio (strong subscription management)
- Auth / app backend: your product
- Webhooks: to sync subscription status into your app
- Customer portal: so users can update cards, cancel, upgrade, etc.
What you need to support
A solid recurring billing setup usually includes:
-
Plans and pricing
- monthly/annual subscriptions
- free trials
- seat-based or usage-based billing
- coupons/promos
-
Checkout
- hosted checkout page, so you don’t handle raw card data
- PCI burden stays low
-
Subscription lifecycle
- create, renew, upgrade/downgrade, cancel, pause
- proration rules
-
Failed payment handling
- automatic retries
- dunning emails
- grace period before access is removed
-
Invoices and receipts
- tax/VAT/GST support if needed
-
Webhooks
- sync events like
payment_succeeded,invoice_failed,subscription_canceled
- sync events like
-
Customer portal
- update payment method
- view invoices
- cancel or change plan
Simplest implementation options
Option A: Stripe Billing
Best if you want flexibility and are okay wiring some logic yourself.
You get:
- recurring subscriptions
- invoices
- payment retries
- coupon support
- customer portal
- tax support add-ons
- metered billing
Typical setup:
- Create products/prices in Stripe
- Use Stripe Checkout for signup
- Listen for webhooks
- Grant/revoke access in your app based on subscription status
- Let users manage billing via Stripe Customer Portal
Best for: most SaaS startups.
Option B: Paddle
Best if you want less tax/compliance overhead.
Paddle is often a merchant of record, meaning they handle:
- VAT/GST/sales tax
- invoicing in many regions
- chargebacks/disputes
- much of the compliance burden
You’ll trade some flexibility for simplicity.
Best for: global SaaS selling to consumers or small businesses, especially outside the US.
Option C: Chargebee / Recurly / Maxio
Best if billing gets complex:
- multiple pricing models
- enterprise invoicing
- custom contracts
- revenue recognition
- lots of dunning/custom workflows
These platforms sit on top of a payment processor and add subscription-management features.
Best for: B2B SaaS with more complex billing.
A lean architecture
A common setup:
- User signs up
- You send them to hosted checkout
- Billing provider processes payment
- Provider sends webhook
- Your backend marks account as:
trialingactivepast_duecanceled
- Your app checks that status to allow/deny premium features
What not to build yourself
Avoid building these unless you have a strong reason:
- storing raw card data
- card retry logic
- invoice generation
- tax calculation for multiple countries
- subscription proration
- PCI compliance scope
- payment failure email sequences
These are exactly what billing platforms are for.
How to choose
Use this rule of thumb:
- Need the fastest startup path: Stripe Billing
- Need easiest global tax handling: Paddle
- Need advanced subscription ops: Chargebee/Recurly
- Need simple one-off subscriptions with minimal code: Stripe Checkout + Customer Portal
Practical recommendation
For most SaaS founders:
- Start with Stripe Billing
- Use hosted checkout
- Use customer portal
- Sync subscription state via webhooks
- Add tax tools only if needed
If you expect lots of VAT/GST complexity or want Merchant of Record, consider Paddle instead.
If you want, I can also give you:
- a step-by-step Stripe setup
- a recommended SaaS billing stack
- or a sample webhook flow in Node/Python