A Stripe link to load the wallet or buy a plan
checkout_linkGet a secure Stripe checkout link for the signed-in member, for one of two things. for: "wallet" loads their wallet with $5, $10, $25 (amount_dollars). for: "plan" buys the Manage or Autopilot plan (plan) at their account type's monthly price; say that price, from the result, when giving the link. NOTHING IS CHARGED BY THIS TOOL: they pay on Stripe's page, and the balance or plan updates a few seconds after. Give the link exactly as returned. Never ask for or accept card details in the conversation. Only set auto_reload when the member has clearly asked for automatic reloads; it lets ShearQuery charge the same card the same amount when the balance runs low, at most once a day. A member who ALREADY has a paid plan is not switched; the result gives the page where switching and cancelling are done.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| for | Yes | What the link pays for. | |
| plan | No | For a plan: the one they chose. | |
| auto_reload | No | For the wallet: true ONLY if the member asked for automatic reloads. Defaults to false. | |
| amount_dollars | No | For the wallet: how much to load, in dollars. |