DOCUMENTATION
PAYMENTS & BILLING
Stripe integration with usage metering and dunning.
BILLING INTERFACE
Every billing call goes through a thin interface. Swap Stripe for Lemon Squeezy or Paddle with one config line.
await billing.trackUsage('ai_tokens', {
amount: tokensUsed,
userId,
teamId,
})FEATURES
- Stripe Checkout & Customer Portal
- Subscription gating with requirePlan()
- Usage → Stripe metered billing auto-sync
- 4-step dunning email sequence
- Annual billing toggle on pricing page
- Stripe Tax enabled by default