Create a payment link
create_payment_linkCreate a payment request with a link, QR code, and hosted checkout page that lets customers pay on-chain from their own wallet, with funds settling directly to the destination.
Instructions
Create a payment request that a customer pays from their own wallet: a payment link (SEP-7 on Stellar, Solana Pay on Solana, EIP-681 on Monad), its QR code and a hosted checkout page. It moves no money: the payment settles on-chain straight to destination once the customer pays. The network is the API key’s: this server is on test networks (dv_ key: no real funds). Omit amount to let the payer choose it (not on Monad, which needs one). Omit asset_code to charge in the chain’s coin (XLM, SOL, MON). Send the customer checkoutUrl (or paymentUri for a wallet), then use get_payment to see when it is paid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memo | No | Numeric MEMO_ID: the idempotency key on every chain and the on-chain match on Stellar. Generated when omitted; reusing one is refused. | |
| chain | No | The chain the payment settles on. Default: stellar. | |
| amount | No | Amount the destination receives, in the asset’s own units, as a decimal string ("25", "10.50"). Omit for an open amount. | |
| message | No | Shown to the payer in their wallet (Stellar and Solana), e.g. an order number. | |
| asset_code | No | Asset to charge in, e.g. "USDC". Omit for the chain’s coin. | |
| include_qr | No | Also return the QR code as an image. Default: false. | |
| destination | Yes | The account that receives the payment, on the chosen chain: Stellar G..., Solana base58 address, Monad 0x... address. | |
| asset_issuer | No | Who issues the asset: the Stellar issuer account, the Solana SPL mint or the Monad ERC-20 contract. Needed for a token unless the API has a preset for it. | |
| checkout_theme | No | Design of the hosted checkout page. Default: classic. |