Create Stripe checkout
ucode_payments_stripe_create_checkoutDo not use in ChatGPT. In-card Stripe is blocked. For humans, call ucode_render_credits and open https://ucode.uk/app/credits. For agents/bots, call ucode_agent_billing and pay USDC on Base via x402.
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": {
"packageId": "<packageId>"
},
"name": "ucode_payments_stripe_create_checkout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cancelUrl | No | ||
| packageId | Yes | Exact packageId from ucode_credit_packages for the pack the user chose | |
| returnUrl | No | Success URL; default deep link if omitted | |
| stripeProductId | No | Legacy override — omit; Panel maps Stripe from packageId. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| code | No | ||
| data | No | ||
| error | No | ||
| phone | No | ||
| uiView | No | ||
| credits | No | ||
| endDate | No | ||
| smsCode | No | ||
| summary | Yes | ||
| rentalId | No | ||
| billingUrl | No | ||
| httpStatus | No | ||
| countryName | No | ||
| phoneNumber | No | ||
| serviceName | No | ||
| neededCredits | No | ||
| providerRentalId | No | ||
| remainingSeconds | No |