Link a card for agentic checkout
link_payment_methodStart linking a card for agentic checkout, with a guest-chosen spending cap. Returns a Stripe-hosted URL, hand this URL to the guest and have THEM open it and enter their own card there. Never ask the guest for their card number, expiry, or CVC in this conversation, and never pass card details as tool input; this app never accepts them. Requires session_token from verify_code.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_token": "<session_token>",
"cap_dollars": "<cap_dollars>"
},
"name": "link_payment_method"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cap_dollars | Yes | The guest's own chosen spending cap in dollars, suggest $150 as a sane default, but the guest picks the real number on the Stripe page. | |
| session_token | Yes |