Upgrade checkout link
cooper_upgrade_linkUse this when the human wants to upgrade, or a limit was hit and they agree to pay. Requires auth. Creates a Stripe Checkout session; no charge happens until the human completes checkout in their browser. Inputs: plan (required; starter or pro), email (optional receipt email), client_id (optional idempotency key). Returns {url, session_id, plan}: give the url to the human; never open or complete it yourself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | Yes | Paid plan to check out | |
| No | Optional receipt email for the Stripe customer | ||
| client_id | No | Optional idempotency key for the Checkout session |