Production Environment
Live Mode is where real customer payments are processed. Complete the Testing Guide and the Go-Live Checklist before you switch.
Switching to Live Mode does not change the API base URL or the Merchant Dashboard. You switch your API key and your webhook configuration.
What stays the same, what changes
| Item | Test Mode | Live Mode |
|---|---|---|
| API base URL | https://api.digetpay.com/v1 | https://api.digetpay.com/v1 (unchanged) |
| Merchant Dashboard | https://pay.digetpay.com/ | https://pay.digetpay.com/ (unchanged) |
| API key | Test API Key | Live API Key |
| Checkout | Use the redirectUrl returned by the API | Use the redirectUrl returned by the API |
| Webhooks | Test Webhook Configuration | Live Webhook Configuration, with its own HTTPS URL |
| SDK tokens | Test SDK tokens, where applicable | Live SDK tokens, where applicable |
See API Modes & Credentials for the full comparison.
Never use your Live API Key for development or testing, and never leave your Test API Key in a live deployment. Keep the two keys in separate secrets.
Cutover steps
flowchart TD test[Test Mode tests pass] checklist[Go-live checklist complete] approval[Go-live approval] keys[Get Live API Key] config[Update API key secret] webhooks[Register Live webhook] smoke[Live smoke test] live[Live traffic enabled] test --> checklist --> approval --> keys --> config --> webhooks --> smoke --> live
- Validate in Test Mode — the Testing Guide scenarios all pass.
- Business sign-off — Business Onboarding approved for live processing, and technical go-live approval granted.
- Get your Live API Key — from the Merchant Dashboard or the DigetPay integration team.
- Update configuration. Replace the API key in your secrets manager or environment. The base URL stays the same:
DIGETPAY_API_KEY=your_live_api_key
DIGETPAY_API_BASE=https://api.digetpay.com/v1- Update your own URLs — set
successUrl,failureUrland your webhook endpoint to your live HTTPS domains. - Register your Live webhook in the Live Webhook Configuration of the Merchant Dashboard. It is separate from your Test webhook.
- Smoke test — place a small real or authorized transaction, confirm it with the Status API, and check that your Live webhook was received.
- Monitor — the dashboard and webhook logs for the first 24 hours.
Configuration
Use one base URL and load the key from a secret. Do not add logic that switches the base URL by environment.
$config = [
'api_base' => 'https://api.digetpay.com/v1',
// Test API Key in development/QA; Live API Key in your live deployment.
'api_key' => getenv('DIGETPAY_API_KEY'),
];Integration Code — Hosted · Integration Code — Embedded
Apple Pay in Live Mode
- Live merchant domain verified with Apple (Embedded integrations)
customerPhoneon every create link request- Test on Safari before marketing launch
Apple Pay Embedded if using custom checkout.
Rollback plan
| Issue | Action |
|---|---|
| High decline rate | Pause traffic; compare your Test and Live configuration |
| Webhook failures | Fix handler and check the Live webhook configuration; replay from dashboard if available |
| Key compromise | Rotate the Live API Key immediately |
Contact [email protected] for production incidents.
Related
Updated about 2 months ago

