Commit Graph

5 Commits

Author SHA1 Message Date
ba73daa66c deep research addressement 2026-06-01 08:40:10 -04:00
469c28fa64 security audit fix start 2026-05-28 20:23:38 -04:00
5214412fff get to prod tasks 2026-05-26 16:06:34 -04:00
3bcbdae678 fix stripe configuration 2026-05-26 13:47:43 -04:00
40a9ef146c feat(billing): add subscription and Stripe billing router
- Add stripeCustomerId column to users table
- Create Stripe client initialization (web/src/server/stripe.ts)
- Add billing service with getOrCreateCustomer, checkout/portal sessions,
  subscription management, invoice listing, and webhook event handling
- Create billing tRPC router with getSubscription, createCheckoutSession,
  createPortalSession, cancelSubscription, reactivateSubscription, listInvoices
- Add raw webhook endpoint at /api/stripe/webhook with signature verification
- Define Valibot schemas for all billing procedure inputs
- Wire billing router into root tRPC router
- Update schema tests for new column/index counts
- Write unit tests for billing service and router
2026-05-25 16:07:00 -04:00