DirectCryptoPay Docs

Testnet vs Mainnet

DirectCryptoPay provides two separate environments so you can build and test your integration risk-free before processing real payments.

Environment Overview

Testnet Mainnet
Purpose Development and testing Production payments
Dashboard test-app.directcryptopay.com app.directcryptopay.com
API Base test-api.directcryptopay.com api.directcryptopay.com
Widget widget-dev.directcryptopay.com widget.directcryptopay.com
Blockchain Networks Sepolia, Amoy, BSC Testnet Ethereum, Polygon, BNB Chain
Tokens Test tokens (free from faucets) Real cryptocurrency
Subscription Required No Yes
Webhooks Fully functional Fully functional

Working with Testnet

Testnet is a complete mirror of the production environment, using blockchain test networks instead of mainnets. Everything works the same way -- payment intents, widget, webhooks, and the dashboard -- but with worthless test tokens.

Getting Test Tokens

You need test tokens to simulate customer payments:

Token Faucet
Sepolia ETH sepoliafaucet.com
Sepolia USDC faucet.circle.com

Tip: You need a small amount of test ETH for gas fees on Sepolia, even when paying with test USDC. Get Sepolia ETH first.

### Testing Workflow
  1. Create your account on the testnet dashboard
  2. Configure your wallet address (same as mainnet -- it works on all EVM chains)
  3. Set up your integration (widget, WordPress plugin, etc.)
  4. Get test tokens from a faucet
  5. Make a test payment
  6. Verify the payment appears in your dashboard
  7. Verify your webhook receives the notification

Switching to Mainnet

When you are ready for production:

  1. Create a mainnet account at app.directcryptopay.com
  2. Subscribe to a plan -- Mainnet access requires an active subscription
  3. Update your configuration:
    • Change the API base URL from test-api to api
    • Change the widget URL from widget-dev to widget
    • Update your dashboard links
  4. Verify wallet address -- Confirm your production wallet is correct
  5. Test with a small real payment before going fully live

Do not reuse testnet API keys on mainnet. Each environment has separate accounts and API keys. Testnet keys will not work on mainnet and vice versa.

## Environment Variables Reference

Testnet

DCP_API_BASE=https://test-api.directcryptopay.com
DCP_WIDGET_URL=https://widget-dev.directcryptopay.com
DCP_DASHBOARD=https://test-app.directcryptopay.com

Mainnet

DCP_API_BASE=https://api.directcryptopay.com
DCP_WIDGET_URL=https://widget.directcryptopay.com
DCP_DASHBOARD=https://app.directcryptopay.com

Next Step: Set up your API Keys to start integrating.