Skip to content

Test vs Live Mode

The key you use determines the mode. No other flag, header, or environment variable is needed:

  • sk_sandbox_... / pk_sandbox_... → test mode
  • sk_live_... / pk_live_... → live mode
Aspect Test mode Live mode
Acquirer calls Mocked — no real processing Real acquirer calls
Cards accepted Test card numbers only Real cards
Data isolation Separate from live data Separate from test data
Webhooks Fire with test events Fire with live events
Time Can be simulated with test clocks Real time only
Emails Only to people in your organisation (details) To the address given
SMS Not sent To the number given
Hosted pages Show a “Test mode” banner No banner
API responses Identical shape Identical shape
  • Same API endpoints
  • Same request and response structure
  • Same webhook event format and delivery
  • Same error codes and response shapes
  • Same status transitions

Sandbox and live are two paired accounts, not two modes of one account. Getting a live account and getting it activated is the bulk of the work:

  1. Create the live account. In the dashboard, go to Settings → Manage Accounts and use Promote to Live on your sandbox account. This creates the paired live account
  2. Complete onboarding. The new live account’s dashboard shows a Continue onboarding banner. It opens the onboarding application — business details, beneficial owners, supporting documents, and terms acceptance
  3. Wait for the review decision. The onboarding application shows the current status once submitted, including when the review team needs more from you. Once it’s approved, we set the account up to take payments and email you when it’s active. The banner disappears then
  4. Swap keys. On the live account, go to Developer → API keys and click Create secret key. The key is shown once, so copy it straight into your server environment, replacing sk_sandbox_ with sk_live_. Replace pk_sandbox_ with pk_live_ in your client-side code, using the live publishable key on the same page. See API Keys
  5. Register your production webhook endpoint. Ask support to add it against the live account — sandbox subscriptions do not carry over
  • Store sandbox keys in .env.development and live keys in .env.production
  • Never mix test and live keys in the same application instance
  • Use separate webhook endpoints for test and live events — each account has its own subscriptions, registered by support
  • Test data is never visible in live mode and vice versa