Introduction to Sandbox Environment
The DollarPe Sandbox environment provides a safe, isolated testing ground for integrating with our onramp/offramp APIs before deploying to production. This guide covers everything you need to know about testing your integration thoroughly in the sandbox environment.Key Benefits of Sandbox Testing: - Test the full integration flow without
real funds - Validate your implementation against our API specifications -
Simulate various success and error scenarios - Ensure your error handling
works correctly - Gain confidence before going live
Sandbox vs. Production
- Key Differences
- Environment Comparison
| Feature | Sandbox | Production |
|---|---|---|
| Base URL | https://sandbox.dollarpe.xyz | https://production.dollarpe.xyz |
| API Keys | Sandbox-specific | Production-specific |
| Funds | Test funds only | Real funds |
| Blockchain Networks | Includes test networks | Only mainnet networks |
| Processing Times | Accelerated for testing | Actual processing times |
| Rate Limits | Higher for testing | Standard production limits |
Getting Started with Sandbox
Step 1: Obtain Sandbox Credentials
To get started with the sandbox environment:- Contact our support team to request sandbox access
- You’ll receive your sandbox API key and API secret
- Store these credentials securely, following the same security practices you would for production
Step 2: Configure Your Environment
Update your application configuration to use the sandbox base URL and credentials:Step 3: Implement Authentication
Authentication works the same way in sandbox as it does in production. Use the same header generation logic with your sandbox credentials:Testing KYC Flow in Sandbox
The sandbox environment allows you to test the complete KYC flow without submitting real documents.Creating Test Customers
Create test customers using the same API endpoint as production:Simulating KYC Document Submission
In sandbox, you can use test document URLs for KYC submission:In the sandbox environment, KYC verification is automatically approved for
most test submissions. To test failure scenarios, use specific test values as
described in the “Testing Error Scenarios” section.
Adding Test Bank Accounts
Once KYC is verified, add test bank accounts:In the sandbox environment, transaction processing is accelerated. Status
changes that might take hours in production typically happen within minutes in
sandbox.
Testing Payin Flow in Sandbox
Fetching Payin Configuration
Fetch payin configuration for supported assets, limits:Fetching Test Rates
Fetch test exchange rates using the same API as production:Creating Test Quotations
Create test quotations:Initiating Test Payin
Initiate test payin using the random utr:Monitoring Test Transaction Status
Monitor the status of your test payin:Testing Payout Flow in Sandbox
Fetching Payout Configuration
Fetch payout configuration for supported assets, limits:Fetching Test Rates
Fetch test exchange rates using the same API as production:Creating Test Quotations
Create test quotations to receive wallet addresses for sending test funds:Sending Test Cryptocurrency
In the sandbox environment, you can use test networks like Sepolia for Ethereum-based testing:- Get test tokens from a Sepolia faucet
- Send the exact amount of test USDT/USDC to the wallet address from the quotation
- Obtain the transaction hash for the next step
Initiating Test Payouts
Initiate test payouts using the transaction hash from your test network transaction:Monitoring Test Transaction Status
Monitor the status of your test payout:Testing Webhook Integration
Configure your webhook endpoint to receive test notifications:Sandbox Testing Checklist
Use this checklist to verify that your integration is fully tested and production-ready:Customer and KYC Testing
Customer and KYC Testing
- Create a test customer profile - [ ] Submit KYC details for verification
- Confirm successful KYC approval flow - [ ] Simulate KYC rejection and error responses - [ ] Update and resubmit failed KYC information - [ ] Add and verify bank account details
Payin Flow Testing
Payin Flow Testing
- Retrieve payin configurations - [ ] Fetch exchange rates for payin - [ ] Generate and review quotations - [ ] Handle expired quotation scenarios - [ ] Simulate fiat transfer using provided bank details - [ ] Initiate payin with transaction reference - [ ] Use mock status endpoint to change transaction status - [ ] Monitor status updates throughout the payin flow - [ ] Confirm successful payin completion - [ ] Simulate and handle payin failure scenarios
Payout Flow Testing
Payout Flow Testing
- Retrieve payout configurations - [ ] Fetch exchange rates for payout - [ ] Generate and review quotations - [ ] Handle expired quotation scenarios - [ ] Simulate crypto transfer using testnet - [ ] Initiate payout with transaction reference - [ ] Use mock status endpoint to change transaction status - [ ] Monitor status updates throughout the payout flow - [ ] Confirm successful payout completion - [ ] Simulate and handle payout failure scenarios
Webhook Testing
Webhook Testing
- Set up and configure your webhook endpoint - [ ] Confirm webhook receives KYC status events - [ ] Confirm webhook receives transaction status events - [ ] Implement and test webhook retry or failure handling
Error Handling Testing
Error Handling Testing
- Simulate invalid or expired API credentials - [ ] Submit invalid or incomplete request payloads - [ ] Test rate limiting and throttling responses
- Simulate network timeouts and delayed responses - [ ] Ensure user-facing error messages are clear and actionable
Transitioning to Production
Once you’ve completed thorough testing in the sandbox environment, follow these steps to transition to production:- Request production API credentials from our support team
- Update your application configuration to use production URLs and credentials
- Ensure all test code and sandbox-specific logic is removed or properly conditioned
- Implement proper logging and monitoring for production transactions
- Set up alerts for critical error conditions
- Conduct a final review of security measures and error handling
- Deploy your application with production settings
Getting Help
If you encounter any issues during sandbox testing:- Check our API documentation for detailed endpoint information
- Review error messages and response codes for troubleshooting clues
- Contact our support team with specific error details and transaction IDs
Our support team is available to help with sandbox testing issues. When
reporting problems, please include your relevant customer IDs, transaction
IDs, and detailed error messages to expedite troubleshooting.

