How environments are separated
| Behaviour | Test mode | Live mode |
|---|---|---|
| Events ingested | Yes | Yes |
| Invoices generated | Yes | Yes |
| Customers charged | No | Yes |
| Payouts submitted | No | Yes |
| Webhook deliveries | To test endpoint (if set) | To live endpoint |
| Data visible in dashboard | Test tab | Live tab |
Switching modes
You switch between modes by changing the API key in your requests. There is no global toggle — each request is independently scoped to the key used. This means you can run test and live traffic simultaneously using different keys, which is useful during gradual rollouts.Recommended workflow
- Develop locally using
mk_test_keys - Stage using test keys pointed at a staging API
- Deploy to production with
mk_live_keys via environment variables

