@cslug/billing
Subscriptions and payments with Stripe, without the Stripe SDK. Stripe Checkout and the customer portal are the
payment pages: billing.checkout(user, { prices: ['price_pro'] }) sends the user there, and Stripe's webhooks
(received at /billing/webhook, verified, exactly once) keep the app's copy of each subscription up to date, so
await billing.subscribed(user) is a local query. Trials, grace periods after a cancellation, past-due renewals,
several named subscriptions per user, invoices as Money, and events for the app to react to.
Part of cslug. Docs: docs/README.md, docs/api.md.