Server actions
💳Checkout
Starts a Stripe Checkout session for upgrading to Pro.
Creates the Stripe customer on first checkout, so the customer portal works later without a second one.
Parameters
| Name | Type | Description |
|---|---|---|
plan | "pro" | "team" | The plan to buy. |
interval | Interval | Monthly or yearly. |
Team is sales-only for now. The action rejects it server-side, so the UI is never the only guard.
Returns
A url for the hosted Stripe Checkout page. Redirect the user there.
Where it's called
The upgrade button on the billing page.



















