Pay a prepared checkout
complete_checkoutAfter the buyer approves the prepared order and total, pay its existing checkout session using a compatible Stripe payment token, including a shared payment token (spt_...). Pass the order ID as checkout_session_id; do not resend the document or addresses. On an interrupted request, retry the same checkout and token. Existing authorized, processing, or paid payments are reused; follow the returned status and messages.
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": {
"checkout_session_id": "<checkout_session_id>",
"buyer": "<buyer>",
"payment_data": "<payment_data>"
},
"name": "complete_checkout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buyer | Yes | Buyer identity details for the approved checkout. | |
| payment_data | Yes | Buyer-authorized payment token details. Use provider=stripe. | |
| checkout_session_id | Yes | The checkout session id to finalize. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| buyer | Yes | ||
| links | Yes | ||
| order | No | ||
| status | Yes | ||
| totals | Yes | ||
| currency | Yes | ||
| messages | Yes | ||
| line_items | Yes | ||
| fulfillment_address | No | ||
| fulfillment_options | Yes | ||
| fulfillment_option_id | No |