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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user