Test Environment (Sandbox)
MartianPay provides a fully functional test environment for developers to integrate and test payment flows before going live.
Environment URLs
| Environment | Dashboard | API Base URL |
|---|---|---|
| Production | https://dashboard.martianpay.com | https://api.martianpay.com/v1/ |
| Development (Sandbox) | https://dev-dashboard.martianpay.com | https://dev.martianpay.com/v1/ |
To switch from production to development environment, simply replace api with dev in the URL. All API endpoints and parameters remain the same.
Getting Started with Test Environment
- Register a new account at dev-dashboard.martianpay.com
- Get your API key from the dashboard
- Configure your SDK to use the dev environment URL
SDK Configuration
Go SDK:
import martianpay "github.com/MartianPay/martianpay-go-sample/sdk"
client := martianpay.NewClient(apiKey)
client.BaseURL = "https://dev.martianpay.com"
Java SDK:
import com.martianpay.sdk.MartianPayClient;
MartianPayClient client = new MartianPayClient(apiKey, "https://dev.martianpay.com");
Supported Test Networks
The test environment uses testnet for all crypto transactions. Below are all supported test networks and assets.
Native Tokens (Layer 1)
| Blockchain | Network | Token | Explorer |
|---|---|---|---|
| Ethereum | Sepolia | ETH | sepolia.etherscan.io |
| Solana | Devnet | SOL | solscan.io (devnet) |
| TRON | Shasta | TRX | shasta.tronscan.org |
| Avalanche | Fuji | AVAX | testnet.snowtrace.io |
| Base | Sepolia | ETH | sepolia.basescan.org |
| BNB Chain | Testnet | BNB | testnet.bscscan.com |
| TON | Testnet | TON | testnet.tonscan.org |
| Bitcoin | Testnet | BTC | blockstream.info/testnet |
| Algorand | Testnet | ALGO | testnet.explorer.perawallet.app |
| Stellar | Testnet | XLM | stellar.expert/testnet |
Stablecoins (USDC/USDT)
| Token | Network | Contract/Asset ID |
|---|---|---|
| USDC | Ethereum Sepolia | 0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238 |
| USDC | Solana Devnet | 4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU |
| USDC | Avalanche Fuji | 0x5425890298aed601595a70AB815c96711a31Bc65 |
| USDC | Algorand Testnet | 10458941 |
| USDC | Stellar Testnet | USDC-GBBD47IF6LWK7P7MDEVSCWR7DPUWV3NY3DTQEVFL4NAT4AQH3ZLLFLA5 |
| USDC | Noble Testnet | Native |
| USDT | Ethereum Sepolia | 0x7169d38820dfd117c3fa1f22a697dba58d90ba06 |
| USDT | TRON Shasta | TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs |
| USDT | BSC Testnet | 0x337610d27c682E347C9cD60BD4b3b107C9d34dDd |
Getting Testnet Tokens
Ethereum Sepolia
| Token | Faucet |
|---|---|
| ETH | Google Cloud Web3 Faucet |
| USDC | Circle Faucet |
To transfer USDC on Ethereum Sepolia, you need ETH for gas fees. Request ETH first.
Solana Devnet
| Token | Faucet |
|---|---|
| SOL | Solana Faucet |
| USDC | Circle Faucet |
To transfer USDC on Solana Devnet, you need SOL for gas fees. Request SOL first.
Avalanche Fuji
| Token | Faucet |
|---|---|
| AVAX | Avalanche Faucet |
| USDC | Circle Faucet |
Base Sepolia
| Token | Faucet |
|---|---|
| ETH | Base Faucet |
BNB Chain Testnet
| Token | Faucet |
|---|---|
| BNB | BNB Faucet |
TRON Shasta
| Token | Faucet |
|---|---|
| TRX | TRON Shasta Faucet |
TON Testnet
| Token | Faucet |
|---|---|
| TON | TON Testnet Faucet (Telegram Bot) |
Bitcoin Testnet
| Token | Faucet |
|---|---|
| BTC | Bitcoin Testnet Faucet |
Algorand Testnet
| Token | Faucet |
|---|---|
| ALGO | Algorand Testnet Dispenser |
Stellar Testnet
| Token | Faucet |
|---|---|
| XLM | Stellar Friendbot |
Recommended Crypto Wallets
MetaMask (EVM Chains)
MetaMask supports Ethereum Sepolia, Base Sepolia, Avalanche Fuji, and BSC Testnet.
Setup Steps:
- Install MetaMask browser extension
- Open MetaMask and click on the network dropdown
- Enable "Show test networks" in Settings > Advanced
- Select the desired test network (Sepolia, etc.)
- Request test tokens from the faucets above
Supported Networks:
- Ethereum Sepolia (ETH, USDC, USDT)
- Base Sepolia (ETH)
- Avalanche Fuji (AVAX, USDC)
- BSC Testnet (BNB, USDT)
Phantom (Solana)
Phantom is recommended for testing payments on Solana Devnet.
Setup Steps:
- Install Phantom browser extension
- Open Phantom and go to Settings (gear icon)
- Select "Developer Settings"
- Enable "Testnet Mode" and select "Devnet"
- Request test SOL and USDC from the faucets above
Supported Assets:
- SOL (native token for gas)
- USDC on Solana Devnet
TronLink (TRON)
TronLink is recommended for testing payments on TRON Shasta.
Setup Steps:
- Install TronLink browser extension
- Switch to Shasta Testnet in network settings
- Request test TRX from the faucet
Supported Assets:
- TRX (native token for gas)
- USDT on TRON Shasta
Testing Checklist
Before going live, make sure you have tested the following:
- Create a payment intent
- Complete a crypto payment with testnet tokens
- Receive webhook notifications
- Process a refund
- Test payout functionality
- Verify your integration handles all payment statuses
Moving to Production
Once you've completed testing:
- Register at dashboard.martianpay.com
- Complete KYB verification
- Update your SDK configuration to use
https://api.martianpay.com - Replace your test API key with your production API key
- You're live!