Sandbox vs Production
| Environment | Use Case | Behavior |
|---|---|---|
| Sandbox | Development, testing, CI/CD | Transactions simulated via provider test modes |
| Production | Live customer transactions | Real money moves |
The API base URL is the same for both environments:
https://api.orchestrasolutions.comHow Environments Work
Orchestra doesn’t have a global “test mode” switch. Instead, the environment is determined by:- Your Payment Gateway Account credentials - Test credentials (e.g., Stripe’s
sk_test_...) route to sandbox; live credentials route to production - The
modeparameter (Payments Library only) - Set toTESTorLIVEwhen creating sessions
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., “test-success”)
- 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 Test API Keys
Create separate API keys for development. Label them clearly (e.g., “Development”, “CI/CD”).3. Use Test Card Numbers
Each payment provider has test card numbers that simulate various scenarios:| Provider | Test Card | Notes |
|---|---|---|
| Stripe | 4111111111111111 | Successful charge |
| Stripe | 4000000000000002 | Card declined |
| Adyen | 4111111111111111 | Successful charge |
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:
| Mode | Behavior |
|---|---|
TEST | Sandbox transactions |
LIVE | Production transactions |
Going Live Checklist
When you’re ready to accept real payments:1
Create Production Payment Gateway Accounts
Add your payment providers with live/production credentials:
2
Generate Production API Keys
Create new API keys specifically for production. Use environment variables or a secrets manager.
3
Update Your Application
Change your code to reference production account names:For the Payments Library, change
mode from TEST to LIVE.4
Test with Small Amounts
Before full launch, process a few small real transactions to verify everything works end-to-end.
Running Both Environments
You can maintain both sandbox and production in the same Orchestra account:Best Practices
Separate Everything
Use distinct API keys, Payment Gateway Accounts, and environment variables for each environment.
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.