Confirm a completed Stripe Checkout session and sync the plan
billing
Confirm a completed Stripe Checkout session and sync the plan
Authoritative answer to “did my upgrade land?” for the page the browser returns to after Stripe Checkout.
The success redirect races the checkout.session.completed webhook, so the billing page must not celebrate off a URL parameter alone (audit 2026-08-14: “Plan upgraded successfully!” rendered above “Current plan: Free”). This retrieves the session, verifies it belongs to the caller’s org, applies the grant if the webhook hasn’t yet, and returns the org’s actual plan. Deliberately NOT admin-gated: it grants only what a completed Stripe session already proves was bought.
GET
Confirm a completed Stripe Checkout session and sync the plan