Get started in three steps

Transform your API into a revenue stream with Solana micropayments in minutes.

Step 1: Install CheapPay

Step 2: Set up payment middleware

Step 3: Test your integration

Next steps

Now that you have payments working, explore these advanced features:

Environment setup

For production use, set up these environment variables:
# Your Solana wallet address (receives payments)
CHEAPAY_WALLET_ADDRESS=YourSolanaWalletAddressHere

# Network configuration
SOLANA_NETWORK=solana-mainnet  # or solana-devnet for testing

# Optional: Custom facilitator URL
FACILITATOR_URL=https://api.cheappay.com/v1/x402
Security reminder: Never expose private keys in your code. CheapPay only needs your public wallet address to receive payments.

Need help?