Environments
Sandbox and production separation, key management, and release safety.
Environment strategy
Two primary environments are recommended:
sandbox: development, QA, and staging testsproduction: live traffic
Recommended variables
HSRCPAY_TEST_KEY=sk_test_xxx
HSRCPAY_LIVE_KEY=sk_live_xxx
HSRCPAY_ENVIRONMENT=sandboxDeployment rules
- Staging pipeline uses test keys only.
- Production pipeline uses live keys only.
- Keep real payment flows disabled in pull request preview environments.
Transition checklist
Before going live:
- Regenerate webhook endpoints and secrets in production.
- Update callback URLs to the production domain.
- Activate monitoring dashboards and alert policies.