HSRCPAY Documentation

Environments

Sandbox and production separation, key management, and release safety.

Environment strategy

Two primary environments are recommended:

  • sandbox: development, QA, and staging tests
  • production: live traffic
HSRCPAY_TEST_KEY=sk_test_xxx
HSRCPAY_LIVE_KEY=sk_live_xxx
HSRCPAY_ENVIRONMENT=sandbox

Deployment 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:

  1. Regenerate webhook endpoints and secrets in production.
  2. Update callback URLs to the production domain.
  3. Activate monitoring dashboards and alert policies.

On this page