MoonPay Commerce (Helio) Accept Crypto Payments
by @mavagio
Accept crypto payments on Solana via MoonPay Commerce (formerly Helio). Create Pay Links, generate checkout URLs, check transactions, and list supported currencies. Use when the user wants to accept crypto payments, create payment links, charge for products/services with crypto, or query payment transactions. Requires a MoonPay Commerce account with API key and secret.
clawhub install mpc-accept-crypto-paymentsπ About This Skill
name: mpc-accept-crypto-payments description: Accept crypto payments on Solana via MoonPay Commerce (formerly Helio). Create Pay Links, generate checkout URLs, check transactions, and list supported currencies. Use when the user wants to accept crypto payments, create payment links, charge for products/services with crypto, or query payment transactions. Requires a MoonPay Commerce account with API key and secret. metadata: openclaw: requires: bins: - jq - curl env: - HELIO_API_KEY - HELIO_API_SECRET credentials: storage: ~/.mpc/helio/config setup: bash scripts/setup.sh permissions: "600"
MPC Accept Crypto Payments
Merchant-side skill for accepting crypto payments on Solana via MoonPay Commerce (formerly Helio).
Setup
Run the setup script with your API credentials (wallet ID is fetched automatically):
bash scripts/setup.sh
You'll need:
The setup script will:
1. Validate your credentials against the API
2. Fetch your Solana wallets automatically
3. Select the PAYOUT wallet (or CONNECTED if no PAYOUT exists)
4. Save everything to ~/.mpc/helio/config
If the user doesn't have an account, direct them to https://app.hel.io to sign up.
Config Management
bash scripts/setup.sh status # Show current config
bash scripts/setup.sh clear # Remove saved credentials
Quick Reference
Base URL: https://api.hel.io/v1
List Supported Currencies (no auth needed)
curl -s https://api.hel.io/v1/currency | jq '.[].symbol'
Create a Pay Link
curl -s -X POST "https://api.hel.io/v1/paylink/create/api-key?apiKey=$HELIO_API_KEY" \
-H "Authorization: Bearer $HELIO_API_SECRET" \
-H "Content-Type: application/json" \
-d '{
"name": "My Payment",
"template": "OTHER",
"pricingCurrency": "",
"price": "",
"features": {
"canChangePrice": false,
"canChangeQuantity": false,
"canSwapTokens": true
},
"recipients": [{
"currencyId": "",
"walletId": ""
}]
}'
Defaults: Currency is USDC (6340313846e4f91b8abc519b). Token swapping is enabled so payers can pay with any supported Solana token (auto-converted to USDC).
Price format: price is in base units (int64 string). For USDC (6 decimals): "1000000" = 1 USDC. For SOL (9 decimals): "1000000000" = 1 SOL.
Create a Charge (Checkout URL)
curl -s -X POST "https://api.hel.io/v1/charge/api-key?apiKey=$HELIO_API_KEY" \
-H "Authorization: Bearer $HELIO_API_SECRET" \
-H "Content-Type: application/json" \
-d '{"paymentRequestId": ""}'
Returns { "id": "...", "pageUrl": "https://..." } β share pageUrl with the payer.Check Transactions
curl -s "https://api.hel.io/v1/paylink//transactions?apiKey=$HELIO_API_KEY" \
-H "Authorization: Bearer $HELIO_API_SECRET"
Disable / Enable a Pay Link
curl -s -X PATCH "https://api.hel.io/v1/paylink//disable?apiKey=$HELIO_API_KEY&disabled=true" \
-H "Authorization: Bearer $HELIO_API_SECRET"
Helper Script
# Setup (run first)
bash scripts/setup.shOperations
bash scripts/helio.sh currencies
bash scripts/helio.sh create-paylink "Coffee" 5.00 USDC
bash scripts/helio.sh charge
bash scripts/helio.sh transactions
bash scripts/helio.sh disable
bash scripts/helio.sh enable
Templates
The template field controls Pay Link type:
OTHER β generic paymentPRODUCT β physical/digital productINVOICE β invoiceSUBSCRIPTION β recurring (requires subscriptionDetails)EVENT β event ticketCredential Handling
When setting up credentials, run the setup script interactively:
bash scripts/setup.sh
The script prompts for credentials directly in the terminal β they are never stored in chat history or logs. Credentials are saved to ~/.mpc/helio/config (mode 600).
Advanced
references/api-reference.mdβοΈ Configuration
Run the setup script with your API credentials (wallet ID is fetched automatically):
bash scripts/setup.sh
You'll need:
The setup script will:
1. Validate your credentials against the API
2. Fetch your Solana wallets automatically
3. Select the PAYOUT wallet (or CONNECTED if no PAYOUT exists)
4. Save everything to ~/.mpc/helio/config
If the user doesn't have an account, direct them to https://app.hel.io to sign up.
Config Management
bash scripts/setup.sh status # Show current config
bash scripts/setup.sh clear # Remove saved credentials