Phase 14, part 3: Stripe's events

/billing/stripe takes Stripe's webhooks, signatures checked, each event
handled once, and keeps each team's subscription up to date: checkout, its
status, seats and period, failed and paid invoices, cancellation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 13:21:25 -07:00
co-authored by Claude Opus 5.5
parent 8fb79220e3
commit 4833f53e0d
9 changed files with 421 additions and 2 deletions
+1
View File
@@ -345,6 +345,7 @@ func (s *Server) Handler() (http.Handler, error) {
// Signing in (the server edition).
mux.HandleFunc("GET /setup/{token}", (*Server).setupPage)
mux.HandleFunc("POST /setup/{token}", (*Server).setupSave)
mux.HandleFunc("POST /billing/stripe", (*Server).stripeWebhook)
mux.HandleFunc("GET /settings/billing", (*Server).billingPage)
mux.HandleFunc("POST /settings/billing/checkout", (*Server).billingCheckout)
mux.HandleFunc("POST /settings/billing/portal", (*Server).billingPortal)