MoonPay Buy Crypto
Create a MoonPay checkout flow on Zo for fiat-to-crypto purchases.
What Zo Uses
Prerequisites
- MoonPay CLI installed
- User authenticated
- Destination wallet available
- Token, amount, and destination chain are known
Workflow
- Verify auth:
mp user retrieve
- Find or confirm the destination wallet:
mp wallet list
- Generate the checkout flow:
mp buy \
--token <currency-code> \
--amount <usd-amount> \
--wallet <destination-address> \
--email <buyer-email>
Tell the user that the next step is in Zo browser.
Open or guide the user to open the returned checkout URL in Zo browser.
Supported Token Codes
btc, sol, eth, trx, pol_polygon, usdc, usdc_sol, usdc_base, usdc_arbitrum, usdc_optimism, usdc_polygon, usdt_trx, eth_polygon, eth_optimism, eth_base, eth_arbitrum
Failure Handling
- If auth is missing, switch to
moonpay-auth. - If destination wallet is unclear, stop and confirm before generating the checkout.
- If the token code is unclear, clarify it before running the command.
Safety Notes
- Treat this as a write / payment flow. Require explicit confirmation if the amount, token, or destination wallet is ambiguous.
- Do not describe the returned URL as if it opens on the user's local machine. The correct next step is Zo browser.
- Completion may require identity verification or payment steps that the user must handle in browser.
Related Skills
moonpay-authmoonpay-check-walletmoonpay-swap-tokens