Get payment status
get_payment_statusReports the payment status and the next step. While waiting for approval it also returns approval_url: give it to the user again whenever they ask how or where to approve. call it again and again with wait_seconds 50: each call waits until the user decides, so do not end your turn or ask the user to check. When next_step is call_execute_payment, call execute_payment at once. After execute_payment, while payment_status is executing, keep calling it with wait_seconds 50: each call waits until the transfer succeeds or fails. Never tell the user a payment is stuck while it is executing.
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": {
"proposal_id": "<proposal_id>"
},
"name": "get_payment_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| proposal_id | Yes | ||
| wait_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| checkout | No | ||
| next_step | Yes | ||
| approval_url | No | ||
| instructions | No | ||
| failure_reason | Yes | ||
| payment_status | Yes | ||
| proposal_status | Yes | ||
| receipt_available | Yes |