Asset 20 8 2
Does AI recommend your business? Run the free check →

Join 15,000 business owners, marketers and entrepreneurs. The Sunday newsletter you'll be annoyed only arrives once a week.

Article

Stripe Test Mode vs Sandboxes: Test Cards, Limits and Going Live

Stripe test mode is the built-in sandbox on every Stripe account, where you charge test cards and create test products without real payments, using test API keys that start with pk_test_ and sk_test_. For new integrations, Stripe now recommends a general sandbox instead, because test mode shares many of its settings with live mode.

That shared-settings point is the catch. If you change settings in the Dashboard while in the test mode sandbox, you might also change them in live mode. Many pages show a notification box and disable live settings while you're testing, and anything still enabled is safe. If you don't see that notification, Stripe says to assume your change affects live mode, unless you see a test data banner.

Test mode vs general sandboxes

As of October 2026Test mode sandboxGeneral sandboxes
How manyOneUp to five, plus test mode
SettingsShared with live modeFully isolated; copied from live when you create one
AccessSame roles as live modePrivate by default; you can invite people without live access
API supportV1, and V2 partlyV1 and V2
DeletionCan't be deletedCan be deleted
Test cards and rate limitsSame as sandboxesSame as test mode

Use the test mode sandbox only for existing integrations that depend on it, or when a feature you need doesn't support general sandboxes. Neither lets you test IC+ pricing. Being in a sandbox in the Dashboard doesn't change your code's behaviour: the keys you use do.

The test cards you'll use most

For a successful payment, use 4242 4242 4242 4242 with any future expiry date, such as 12/34, and any three-digit CVC. The rest of the form can hold anything. These cards only work in sandboxes, and the Stripe Services Agreement prohibits testing in live mode with real card details.

Card numberWhat it simulates
4000 0000 0000 0002Generic decline
4000 0000 0000 9995Decline for insufficient funds
4000 0000 0000 0069Expired card
4000 0000 0000 0127Incorrect CVC, as long as you enter a CVC
4000 0000 0000 32203D Secure authentication required
4000 0000 0000 0341Attaches to a customer, then fails when charged
4000 0000 0000 5126Refund that starts as succeeded, then fails
4000 0000 0000 0077Funds go straight to your available balance

A few behaviours you wouldn't guess. Stripe skips the CVC check if you leave it blank, so it can't fail. Card-level state carries between tests, so use a different card for each independent scenario. In code, use a PaymentMethod such as pm_card_visa rather than a raw card number, or your code might not be PCI-compliant when you go live. And 3D Secure redirects don't happen for payments created directly in the Dashboard.

Other test-mode quirks

Sandboxes don't email customers by default, so paying a test invoice won't send a receipt unless you send it manually. The rate limiter is stricter in test environments than in live mode, so 429 errors mean you should slow down, and Stripe says not to load test in a sandbox at all. You can cancel a test card refund within 30 minutes, standing in for the short live window. To see what a customer in another country would see in Checkout or a Payment Link, add +location_US or another country code to a test email address.

Creating a general sandbox

  1. Go to the Sandboxes page in the Dashboard and click Create.
  2. New sandboxes are Private, so change the access level from the overflow menu if your team needs in.
  3. Copy the sandbox's test API keys and account ID somewhere your team can reach.
  4. Set up the products, customers, subscriptions and payment methods you'll test with.
  5. Update anything in your tests that depends on specific test object IDs.

Billing users can also add simulations, which move time forward so subscriptions change state and trigger webhook events without waiting days.

Clearing out test data

  1. In your sandbox, click Developers, then Overview.
  2. Under Test data, click Review test data to see what will go.
  3. Click Delete test data. This can't be undone, and the sandbox is unusable while it runs.

Meters aren't covered by the automated deletion, so you'll need to delete those yourself.

Going live

To take real payments, finish setting up your Stripe account, leave the sandbox with the account picker and swap in your live API keys. You can't process live payments while your integration still uses test keys. Keep live keys in a secrets vault or environment variables, never in source code or files checked into version control.

Work with me

Want AI doing the heavy lifting in your marketing?

I build the systems that handle the boring 80 percent, so you get your week back. Done properly, with the human kept in.

My verdict on Stripe test mode

If you're starting fresh, I'd skip test mode and create a general sandbox, because isolated settings mean you can't break live checkout by accident. Run the decline, 3D Secure and refund-failure cards before launch, not just 4242, since those are the cases customers will hit. If you're testing a hosted flow, here's what Stripe Checkout includes, and for subscriptions, how Stripe Billing is priced and set up is worth reading alongside your test plan.

Testing is where most small teams cut corners, usually because nobody owns it. I run AI training and workshops for teams, and help businesses with AI enablement, AI automation and workflow set-up, so the tools you already pay for do more of the work. Most of that work is with SaaS marketing teams and small businesses. Here's how we can work together.

Frequently asked questions

What is the Stripe test card number?

4242 4242 4242 4242, with any future expiry date and any three-digit CVC, simulates a successful Visa payment in a sandbox.

Is Stripe test mode the same as a sandbox?

Test mode is a sandbox, but it shares settings with live mode. General sandboxes isolate settings and data, and Stripe recommends them for new integrations.

Can changes in Stripe test mode affect live mode?

Yes. Changing Dashboard settings in the test mode sandbox might also change them in live mode, unless the page shows a notification or test data banner.

How many sandboxes does a Stripe account get?

Up to five general sandboxes. The test mode sandbox doesn't count toward that limit.

Does Stripe send emails to customers in a sandbox?

Not by default. You can manually send an invoice or a receipt from the Dashboard if you want to check the email.

Published and maintained by the Lilach Bullock team, covering marketing, AI and business growth.
Your buyers are asking AI who to use. Does it say you?

See for free whether ChatGPT, Claude, Perplexity, Gemini and Google name you, and get the plan to become the answer.

Check my AI visibility →
Sundays only

Get the Sunday newsletter.

One email a week. AI experiments, marketing tactics, and the workflows Lilach is building right now in her own business.

Subscribe free

Let’s get your marketing running on AI.

Book a free 30-minute call

We figure out what you need, where AI fits in, and what working together would look like.

Book the call →

Or take the 30-second calculator

You’ll see the hours and the money quietly leaking out of your week, and the three workflows worth building first.

Take the calculator →

Or grab the free AI resource library

Prompt packs, templates, checklists, and swipe files. The exact tools I build for paying clients. Yours, free.

Get the library →
Keep reading

More from the blog.