x402_submit_payment
Submit a signed payment to complete 402-protected requests. Sends the payment signature to the merchant and handles Gate Pay OAuth for centralized payments.
Instructions
Submit a signed payment to complete a 402-protected request. Takes the payment_signature from x402_create_signature and sends it to the merchant along with the original request. When sign_mode is centralized_payment, runs Gate Pay OAuth (local callback + remote token exchange) if needed, same as x402_gate_pay_auth, no MCP, and attaches Authorization: Bearer . Returns the final response from the merchant.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Target URL for the payment request | |
| body | No | JSON string request body (optional) | |
| method | No | HTTP method for the request. Default POST. | |
| sign_mode | No | When set to centralized_payment (中心化支付), completes Gate Pay OAuth (browser + localhost callback + remote token) if needed and sends Authorization: Bearer <Gate Pay access_token> with the request. Other modes omit this header. | |
| payment_signature | Yes | Base64-encoded PAYMENT-SIGNATURE header value from x402_create_signature |