chainpay_create_order
Create a cryptocurrency payment order and receive a payment URL and wallet address for the payer. Supports USDT and USDC on TRON, BSC, and POLYGON.
Instructions
Create a new cryptocurrency payment order. Returns a payment URL and wallet address for the payer. Supported chains: TRON / BSC / POLYGON. Call chainpay_get_supported_chains first to check minimum amounts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| merchant_order_no | Yes | Your unique order identifier (max 64 chars) | |
| chain | Yes | Blockchain network: "TRON" / "BSC" / "POLYGON" | |
| token | Yes | Token symbol: "USDT" or "USDC" (availability depends on chain) | |
| amount | Yes | Payment amount in USD, e.g. "100.00" | |
| callback_url | No | Webhook URL for payment status notifications | |
| redirect_url | No | URL to redirect payer after successful payment |