Skip to content

Test mode

Test mode lets you wire an app to Stripe’s test environment. When it’s active, Keylight uses your test credentials to verify webhooks and create checkout sessions — your live account is never touched.

Use test mode when you want to verify the end-to-end purchase flow (Stripe Checkout → webhook → license minted) before going live, without real payments.

It is distinct from manual webhook mode, which is a permanent integration style. Test mode is temporary scaffolding you remove once you’ve confirmed everything works.

  1. Open Apps → [your app] → Key Types.
  2. In the Stripe Integration sidebar, click Enter test mode (or expand the test credentials form).
  3. Fill in:
    • Test secret key — must start with sk_test_. Find it in the Stripe dashboard under Developers → API keys.
    • Webhook signing secret — must start with whsec_. Create a local webhook endpoint in Stripe CLI (stripe listen) or a test endpoint in the Stripe dashboard, then copy the signing secret it shows.
    • Test Price IDs (per key type, optional) — price_... IDs from your Stripe test environment. Required if you want test checkouts to create sessions for specific key types.
  4. Click Save test credentials.

The app’s status changes to Testing and a badge appears on the app card.

Normal (Connect)Test mode
Webhook signature verified withConnected account secretYour whsec_... test secret
Checkout sessions created viaConnected account keyYour sk_test_... key
Activate / validate / deactivateUnchangedUnchanged
License issuance on checkout

Activate and validate work normally — test mode only affects the Stripe-facing side.

In the same Stripe Integration sidebar, click Exit test mode. This clears the stored test credentials and returns the app to its previous status. The Testing badge disappears.