Skip to main content

Overview

The Monei sandbox environment allows you to test your integration without using real money or affecting production data. Test all features in a safe, isolated environment. What you’ll learn:
  • Accessing the sandbox
  • Test credentials
  • Simulating transactions
  • Test data
  • Limitations
  • Moving to production

Sandbox vs Production


Getting Started

1. Get Sandbox API Key

1

Sign Up

Create a Monei account at monei.cc
2

Access Dashboard

Log in to your dashboard
3

Navigate to API Keys

Go to Settings → API Keys → Sandbox
4

Copy Test Key

Copy your sandbox API key (starts with sk_test_)

2. Configure SDK


Test Credentials

Test Bank Accounts

Use these test bank accounts for payouts and verification:

Test Cards

Use these test cards for deposits:

Test Phone Numbers

Use these for airtime/data testing:

Test Meter Numbers

For electricity testing:

Testing Workflows

Test Naira Deposit

Test Bill Payment

Test Offramp

Test EVM Transaction


Sandbox Limitations

Limitation: Sandbox uses test money, not real currencyImpact:
  • No actual bank transfers
  • No real bill payments
  • Crypto uses testnets
Testing:
  • Use test credentials
  • Simulate all scenarios
  • Verify integration logic
Limitation: Sandbox data may be reset periodicallyImpact:
  • Test data cleared monthly
  • Transaction history temporary
  • Don’t rely on long-term storage
Best Practice:
  • Export important test data
  • Document test scenarios
  • Use production for real data
Limitation: Instant processing in sandboxImpact:
  • No real delays
  • Instant confirmations
  • Can’t test timeout handling
Testing:
  • Manually simulate delays
  • Test timeout logic separately
  • Use production for real timing
Limitation: Uses testnets onlyNetworks:
  • Base Sepolia (not Base mainnet)
  • Polygon Mumbai (not Polygon mainnet)
  • Solana Devnet (not mainnet-beta)
Testing:
  • Get testnet tokens from faucets
  • Use testnet explorers
  • Verify on testnet first
Limitation: Webhook behavior may differImpact:
  • Faster delivery
  • May skip some retries
  • Different timing
Testing:
  • Test webhook handling
  • Verify signature validation
  • Check idempotency

Test Scenarios

Successful Flow

Failed Flow


Testing Checklist

Deposits

Card deposit success
Card deposit with PIN
Card deposit with OTP
Card declined
Bank transfer
USSD deposit

Payouts

Bank transfer success
Bank transfer failed
P2P transfer
Insufficient balance
Invalid account

Bill Payments

Airtime success
Data bundle
Cable TV
Electricity
Payment failed
Invalid customer

Offramp

Initiate swap
Crypto deposit
Fiat transfer
Order tracking
Failed conversion

Crypto

EVM transactions
Solana transactions
Token swaps
Portfolio tracking
Balance checks

Webhooks

Signature verification
Event handling
Retry logic
Idempotency
Error handling

Moving to Production

When ready to go live:
1

Complete Testing

  • Test all workflows
  • Verify error handling
  • Check edge cases
  • Document test results
2

Get Production API Key

  • Generate live API key (sk_live_…)
  • Store securely
  • Never commit to git
3

Update Configuration

  • Change base URL to production
  • Use production API key
  • Update environment variables
4

Security Review

  • Enable HTTPS
  • Verify webhook signatures
  • Implement rate limiting
  • Review access controls
5

Monitoring Setup

  • Configure alerts
  • Set up logging
  • Enable error tracking
  • Monitor transactions
6

Start Small

  • Test with small amounts
  • Monitor closely
  • Gradually increase
  • Keep sandbox for testing

Best Practices

Test Thoroughly

Test all scenarios before production

Use Test Data

Always use provided test credentials

Document Tests

Keep record of test scenarios and results

Automate Testing

Create automated test suites

Keep Sandbox

Use sandbox for ongoing development

Monitor Both

Monitor sandbox and production separately

Next Steps

Testing Tools

Tools for testing your integration

Security

Security best practices

Error Handling

Handle errors properly

Webhooks

Test webhook integration