Skip to content

Money

Billing depth

The billing work that usually comes after launch. It sits on the same provider interface as checkout, so it works the same way on Stripe and Polar.

  • Stripe
  • Polar

What you get

  • Trials
  • Plan switching with proration
  • Invoice history
  • Coupons and promo codes managed from the admin console
  • Plan copy editable from /admin/plans without a deploy
  • Metered overage events reported to the provider for the next invoice

Turn it on

  • Comes with Payments. Coupons are managed at /admin/coupons

Where it lives

  • lib/billing/provider.ts
  • trpc/routers/billing.ts