Pay for an order in USDC
pay_orderPay for an order in USDC over x402, without opening a browser.
Only for an MCP client that signs x402 payments itself: call it once for the payment requirements, then repeat the call carrying the signed payment in _meta['x402/payment'] and it settles and starts the eSIM. If your wallet is a separate tool, make an x402 request to the order's x402_url instead — this tool cannot take a payment on a wallet tool's behalf.
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": {
"order_id": "<order_id>"
},
"name": "pay_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | order_id from create_checkout |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | How to pay, for the 402 case | |
| result | No | ||
| status | No | ||
| accepts | No | x402 payment requirements to satisfy | |
| order_id | No | ||
| next_step | No | ||
| paid_with | No | ||
| transaction | No | On-chain transaction hash | |
| x402Version | No |