API Environments
Sandbox and production base URLs and switching.
HellOOpass provides separate sandbox and production environments.
Environments
| Aspect | Sandbox | Production |
|---|---|---|
| Purpose | Testing and QA | Live payments |
| Base URL | https://sandbox-api.helloopass.example | https://api.helloopass.example |
| Credentials | Sandbox keys | Production keys |
| Webhooks | Test events to sandbox endpoint | Live events to production endpoint |
| Settlement | No payouts | Payouts to verified settlement account |
Switching
# Sandbox
HELLOOPASS_BASE_URL=https://sandbox-api.helloopass.example
HELLOOPASS_SECRET_KEY=YOUR_SANDBOX_SECRET_KEY
# Production
HELLOOPASS_BASE_URL=https://api.helloopass.example
HELLOOPASS_SECRET_KEY=YOUR_PRODUCTION_SECRET_KEY- Keep keys per environment; never mix them.
- Fail fast if env vars are missing.
- Test only in sandbox first.