x402_centralized_payment
Execute centralized payments from X402 PAYMENT-REQUIRED headers by parsing payment details, handling Gate Pay OAuth, calling the API, and returning transaction results.
Instructions
Execute centralized payment (中心化支付) by parsing PAYMENT-REQUIRED header, extracting payment information, and calling the Gate Pay centralized payment API. Automatically handles Gate Pay OAuth authentication if needed (same as x402_gate_pay_auth). Parses amount (converts from smallest unit by dividing by 10^6), currency, prepayId, and orderId from the header. Returns payment result including transaction details.
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": {
"payment_required_header": "<payment_required_header>"
},
"name": "x402_centralized_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payment_required_header | Yes | Base64-encoded PAYMENT-REQUIRED header value containing payment information |