Docs Advanced Shipment Tracking Pro (AST PRO) How to Get Your Stripe API secret key

How to Get Your Stripe API secret key

AST PRO uses your Stripe secret key to send shipment tracking to Stripe transactions. Follow the steps below to get the key, then paste it into WooCommerce → Shipment Tracking → Settings → Stripe Tracking.

AST PRO needs only the Secret Key (sk_live_… for live, sk_test_… for test). The Publishable Key is not used.

Steps

  1. 1Go to dashboard.stripe.com and log in with your Stripe account.
  2. 2In the top bar, use the Test mode / Live mode switch to select your environment. Get test keys in Test mode for staging and live keys in Live mode for production.
  3. 3Click Developers in the top bar, then select API keys. (If you don’t see a Developers option in the top bar, look for it under the Workbench section in your dashboard.)
  4. 4Under Standard keys, find the Secret key row (starts with sk_test_… in test mode or sk_live_… in live mode). Click Reveal test key (or Reveal live key in live mode) to show the full value, then copy it.
  5. 5Paste the key into the Stripe Secret Key field in Stripe Tracking settings and click Use this key.
Stripe Dashboard API keys screen showing the Standard keys section with Secret key row and Reveal button

Test vs live keys

ModeKey formatUse
Test modesk_test_…Development and staging — does not charge real cards.
Live modesk_live_…Production — processes real transactions.
Never use a test key in production or a live key in staging. Mixing environments causes tracking to sync to the wrong Stripe account.

Restricted key (optional)

If you want to limit the key’s permissions, create a Restricted key in the Stripe Dashboard under Developers → API keys → Create restricted key. AST PRO only needs write access to Orders — enable Write for Orders and leave everything else at None.

Create a sandbox account (optional)

Stripe supports separate sandbox environments for staging. To create one, go to your dashboard, click the account picker in the top left, and select New sandbox. Each sandbox has its own set of test API keys. Use this to keep staging activity completely separate from your production data.