Overview
Pay mode implements exact-output payment flows where you specify the precise amount the recipient receives. The user pays whatever is required from their available tokens across all chains. Trade type:EXACT_OUTPUT — fixed destination amount, variable input amount.
Quick start
Props
Required
Source selection (optional)
Pre-select where the user pays from by adding afrom object. Omit to let the user choose.
paymentMethod:
Destination options
Shared options
All focused components share these optional props:Lifecycle callbacks
Examples
Stablecoin payment
Accept 25 USDC on Polygon from any token on any chain:Pre-select payment source
Lock the user to pay from ETH on Ethereum:QR code / crypto transfer
Let the user pay by sending to an address directly:Fiat on-ramp
Let the user pay with a credit card:Payment with contract execution
Execute a function on the destination chain with the payment:App branding and event handling
See also
- Pay use cases — merchant integration, NFT purchases, x402
- Configuration reference — full prop list
- Quote providers — CCTP, Relay, and more