moonpay-commerce
Shop with crypto
Goal
Browse Solana Pay-enabled Shopify stores, add items to a cart, and pay with crypto. The entire flow runs from the CLI — no browser needed.
Commands
List stores
mp commerce store list
Search products
mp commerce product search --store <store> --query <search-term>
Get product details
mp commerce product retrieve --store <store> --productId <product-id>
Add item to cart
mp commerce cart add \
--store <store> \
--variantId <variant-id> \
--quantity <number> \
--cartId <cart-id> # omit to create a new cart
View cart
mp commerce cart retrieve --store <store> --cartId <cart-id>
Remove item from cart
mp commerce cart remove --store <store> --cartId <cart-id> --lineId <line-id>
Checkout and pay
mp commerce checkout \
--wallet <wallet-name> \
--store <store> \
--cartId <cart-id> \
--chain solana \
--email <buyer-email> \
--firstName <first> \
--lastName <last> \
--address <street-address> \
--city <city> \
--postalCode <zip> \
--country <country-name>
Example flow
- Browse stores:
mp commerce store list - Search:
mp commerce product search --store ryder.id --query "ryder" - Add to cart:
mp commerce cart add --store ryder.id --variantId "gid://shopify/ProductVariant/51751218774319" --quantity 1 - Check cart:
mp commerce cart retrieve --store ryder.id --cartId <id-from-step-3> - Checkout:
mp commerce checkout --wallet main --store ryder.id --cartId <id> --chain solana --email buyer@example.com --firstName John --lastName Doe --address "123 Main St" --city Amsterdam --postalCode 1011 --country Netherlands
How it works
- Stores expose a Shopify MCP endpoint for browsing and cart management
cart addcreates or updates a cart (no auth needed, cart ID is the handle)checkoutcalls the API to start a Helio payment, signs the transaction locally, and submits- Helio pays gas — the buyer only pays the item price in USDC
- Returns a transaction signature and order confirmation URL
Tips
- Run
cart addmultiple times to add different items — pass the--cartIdfrom the first call - Use
product searchto find variant IDs — each variant has a Shopify GID - The
--countryflag takes full country names (e.g. "United States", "Netherlands") - Checkout takes 30-90 seconds — the API automates the Shopify checkout flow
- Currently supports Solana chain only for payment
Related skills
- moonpay-auth — Set up a local wallet for signing
- moonpay-check-wallet — Check USDC balance before checkout
- moonpay-swap-tokens — Swap tokens to get USDC for payment
More from moonpay/skills
moonpay-trading-automation
Set up automated trading strategies — DCA, limit orders, and stop losses — by composing mp CLI commands with OS scheduling (cron/launchd).
38moonpay-prediction-market
Trade on prediction markets (Polymarket, Kalshi). Search markets, buy/sell positions, track PnL, and view trade history.
36moonpay-auth
Set up the MoonPay CLI, authenticate, and manage local wallets. Use when commands fail, for login, or to create/import wallets.
33moonpay-swap-tokens
Swap tokens on the same chain or bridge tokens across chains. Use when the user wants to swap, bridge, or move tokens.
33moonpay-price-alerts
Set up desktop price alerts that notify you when tokens hit target prices. Observe-only — no trading, just notifications.
33moonpay-check-wallet
Check wallet balances and holdings. Use for "what's in my wallet", portfolio breakdown, token balances, allocation percentages, and USD values.
32