Sandbox vs Production
The API base URL is the same for both accounts:
https://api.orchestrasolutions.comHow Environments Work
- A sandbox account always runs in test mode. This applies to every transaction, whatever credentials you put in its Payment Gateway Accounts. Live provider credentials do not make a sandbox account live.
- A sandbox account cannot start live Payments Library sessions. A session request with
modeset toLIVEreturns403with the message “The user cannot make Live operations”. - Everything belongs to one account. API keys, Payment Gateway Accounts, eWallet Accounts and templates exist only in the account where you created them.
Setting Up for Testing
Quick Start with Mock PSPs
For immediate testing without external provider accounts, use Orchestra’s built-in mock payment gateways:- In the Portal, go to Payment Gateway Account > Create
- Select NULLSuccess or NULLFailure as the gateway
- Give it a name (e.g., “testSuccess”)
- Leave credentials empty
- Use the account name in your API calls
1. Create Test Payment Gateway Accounts
For comprehensive testing with real provider features, use your provider’s test/sandbox credentials:2. Use Sandbox API Keys
Generate your development API keys in your sandbox account. Label them clearly (e.g., “Development”, “CI/CD”).3. Use Test Card Numbers
Each payment provider has test card numbers that simulate various scenarios:Check your payment provider’s documentation for their full list of test cards and scenario simulations (3DS challenges, insufficient funds, etc.).
Payments Library Mode
When using the Payments Library, set themode parameter in your session request:
Going Live Checklist
When you’re ready to accept real payments:1
Register a Live Account
Create an account again, this time with the Sandbox Account switch turned off. Your sandbox account stays as it is, so you can keep testing there.
2
Generate a Live API Key
Generate an API key in the live account. Keep it in environment variables or a secrets manager.
3
Recreate Your Setup
Nothing is copied from your sandbox account. In the live account, create again:
- your Payment Gateway Accounts, with your providers’ live credentials
- your eWallet Accounts
- your templates
4
Update Your Application
Switch your application to the live API key. For the Payments Library, change
mode from TEST to LIVE.5
Confirm Your Compliance Documents
Check which SAQ applies to you and request our AoC. See PCI Scope and Compliance.
6
Test with Small Amounts
Before full launch, process a few small real transactions to verify everything works end-to-end.
Running Both Environments
Keep one API key per account and choose it by environment:Best Practices
Separate Everything
Use a sandbox account for testing and a live account for production, each with its own API keys and environment variables.
Never Mix Credentials
Don’t use test credentials in production or vice versa. Label accounts clearly.
Automate Safely
CI/CD pipelines should only have access to test credentials. Production deploys should pull from secure secrets.
Monitor After Launch
Watch your first production transactions closely. Verify amounts, success rates, and provider responses.
Related
Create Account
Sign up for Orchestra
Add Payment Provider
Connect your gateways
Generate API Key
Create API credentials
API Reference
Authentication and endpoints