xpayr_create_payment_session
Creates non-custodial crypto payment sessions for merchants and AI agents, generating multi-chain checkout links, QR/direct transfers, reusable links, and invoice email delivery.
Instructions
Create a non-custodial crypto payment session supporting Dual Checkout (Web3 1-Click Pay & Direct Transfer / QR from Binance/Bybit/OKX with on-chain explorer verification), multi-chain agnostic links, 1-year reusable payment links, and automated HTML invoice email delivery.
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": {
"amount": "<amount>",
"currency": "<currency>"
},
"name": "xpayr_create_payment_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Invoice amount in fiat/token units (e.g., 49.90). | |
| network | No | Blockchain network key (e.g., tron-mainnet, bsc-mainnet, solana-mainnet, polygon-mainnet, base-mainnet, arc-mainnet, bsc-testnet). Optional if is_multi_chain is true. | tron-mainnet |
| currency | Yes | Payment token symbol (e.g., USDT, USDC, SOL, TRX, BNB, ETH, MATIC). | USDT |
| order_id | No | Merchant internal order or invoice reference ID (e.g., ORD-1001). | |
| cancel_url | No | HTTPS redirect URL if customer cancels checkout. | |
| coupon_code | No | Optional promotional discount coupon code to apply. | |
| description | No | Human-readable order description shown on checkout and invoice. | |
| is_reusable | No | When true, the payment link remains active for 1 year and accepts repeated payments. | |
| success_url | No | HTTPS redirect URL after confirmed payment. | |
| customer_email | No | Buyer email address for invoice delivery and payment receipt notifications. | |
| is_multi_chain | No | When true, generates a universal multi-chain link allowing the buyer to dynamically choose their network and token at checkout. | |
| ipn_callback_url | No | HTTPS webhook endpoint URL for HMAC-SHA256 signed payment lifecycle events. | |
| send_invoice_email | No | When true and customer_email is provided, sends a branded responsive HTML invoice email with 1-click payment CTA. |