Glossary4 min readUpdated October 15, 2026

What Is a Sandbox Environment in Payment Gateways?

Sandbox environment meaning in payments: what Stripe, Adyen and PayPal sandboxes simulate, what they don't, why real cards are banned, and how to go live.

Article summary

TL;DR

A sandbox environment is an isolated test version of a payment gateway. You call the same API with separate test keys and test card numbers, and the provider returns simulated approvals, declines and refunds. Card networks and banks are never contacted, so no real money moves. You switch to live keys when the integration works.

  • In a sandbox, card networks and banks don't process anything: the provider simulates the result.
  • Test card numbers trigger set outcomes, such as an approval or a generic decline, and only work in the sandbox.
  • Some things behave differently from live: Stripe settles test payments instantly and applies a stricter rate limit.
  • Never use real card details in a sandbox. Stripe's terms forbid testing in live mode with real payment details.
  • Going live means new keys, live webhook endpoints, objects recreated in live mode and, at Adyen and PayPal, a live account.
Want to go further? AskChatGPTClaudePerplexityGrok
On this page

A sandbox environment is a walled-off test copy of a payment provider's system. Your code calls the same API as in production, but with test keys and test card numbers, and the provider sends back simulated results. Stripe, Adyen and PayPal all offer one, under slightly different names. The word has a second meaning in finance, the regulator-run sandbox, covered in the FAQ below.

What a payment sandbox simulates, and what it doesn't

A sandbox gives you the full API, the dashboard and the webhooks, but nothing leaves the provider. Stripe puts it plainly: in a sandbox, "card networks and payment providers don't process payments", and sandboxes "don't move funds through real banks or card networks."2Stripe Docs, Testing use cases: compare sandboxes, sandboxes versus live mode (read October 14, 2026) The issuer's answer is replaced by a script. Each test card number triggers a set outcome: approval, generic decline, insufficient funds, a 3D Secure challenge. Our payment API and Luhn algorithm entries list the most used Stripe cards.

StripeAdyenPayPal
NameSandboxes (incl. the test mode sandbox)Test environmentSandbox
WhereSandboxes page in the Dashboard, test API keysTest Customer Area (ca-test.adyen.com)Sandbox accounts at developer.paypal.com
Test endpointSame API, test keyscheckout-test.adyen.comapi-m.sandbox.paypal.com
Test dataTest cards, test helpersTest cards, valid only on Adyen's test platformFictitious business and personal accounts
How manyTest mode sandbox plus up to five general sandboxesSeparate test accountSandbox accounts you create
Going liveSet up the account, switch to live keysApply for a live account, use your live endpointsBusiness account, new credentials and endpoints

Sources: Stripe, Adyen and PayPal docs, read October 14, 2026.1Stripe Docs, Sandboxes (read October 14, 2026)2Stripe Docs, Testing use cases: compare sandboxes, sandboxes versus live mode (read October 14, 2026)5Adyen Docs, Testing (read October 14, 2026)6Adyen Docs, Test card numbers (read October 14, 2026)7Adyen Docs, Live endpoints (read October 14, 2026)8PayPal Developer, Sandbox testing guide (read October 14, 2026)9PayPal Developer, Sandbox accounts (read October 14, 2026)10PayPal Developer, Get started with PayPal REST APIs (read October 14, 2026)

A sandbox is close to live, not identical. In Stripe's, test payments settle instantly to your test balance, card refunds succeed immediately, and the rate limiter is stricter than in live mode.3Stripe Docs, Testing (read October 14, 2026) You can't test IC+ pricing in a Stripe sandbox.1Stripe Docs, Sandboxes (read October 14, 2026) PayPal notes that some features, such as closing an account or monthly statements, don't apply to its sandbox.8PayPal Developer, Sandbox testing guide (read October 14, 2026)

Test data only: never real cards

A sandbox is built for fake data, and providers make that a rule. Stripe's testing guide says: "Don't use real card details," and its Services Agreement "prohibits testing in live mode using real payment method details."3Stripe Docs, Testing (read October 14, 2026) In a Stripe sandbox, "You can't accept real payment methods or work with real accounts."2Stripe Docs, Testing use cases: compare sandboxes, sandboxes versus live mode (read October 14, 2026) Adyen's test cards "only work with Adyen's test platform."6Adyen Docs, Test card numbers (read October 14, 2026) Keeping real card numbers out of test code and logs also keeps them out of places they don't need to be: Stripe's go-live checklist asks you to check that logs hold no card details.4Stripe Docs, Go-live checklist (read October 14, 2026)

Sandbox vs live: going live

Stripe says switching between its sandbox and live mode "is mostly a matter of swapping your API keys", but its checklist adds a few steps.4Stripe Docs, Go-live checklist (read October 14, 2026)

  1. Live accountStripe: set up the account. Adyen: apply for a live account. PayPal: a Business account
  2. Swap keys and endpointsLive keys in, test keys out; Adyen and PayPal also change the base URL
  3. Live webhooksRegister the live endpoint; it must handle delays, duplicates and any order
  4. Recreate objectsProducts, plans and coupons from the sandbox don't exist in live mode
  5. Rotate keysRotate any key saved outside your codebase; no keys in the code

Sources: Stripe go-live checklist and testing use cases, Adyen live endpoints, PayPal sandbox and REST API guides.2Stripe Docs, Testing use cases: compare sandboxes, sandboxes versus live mode (read October 14, 2026)4Stripe Docs, Go-live checklist (read October 14, 2026)7Adyen Docs, Live endpoints (read October 14, 2026)8PayPal Developer, Sandbox testing guide (read October 14, 2026)10PayPal Developer, Get started with PayPal REST APIs (read October 14, 2026) Adyen's live URLs carry a prefix unique to your account, such as [prefix]-checkout-live.adyenpayments.com.7Adyen Docs, Live endpoints (read October 14, 2026) For the scenarios to run before launch (declines, duplicates, replayed webhooks, disputes), see how to integrate a payment gateway.

Nick Bonnassies

CMO at Tagada

CMO at Tagada. Before Tagada, Nick built direct-to-consumer brands that generated over $115M in sales, raised over $25M in crowdfunding and sold two of them. He also works as a fractional CMO on marketing operations and AI systems.

Frequently asked questions

What is a sandbox environment in payment gateways?

It's a separate test version of the gateway, with its own API keys or URLs. You send real API requests with test card numbers, and the gateway returns simulated results. Stripe says that in a sandbox, card networks and payment providers don't process payments, so nothing reaches a bank and no money moves.

Is a sandbox the same as test mode?

At Stripe, test mode is one kind of sandbox. Every account has a test mode sandbox that shares settings with live mode, and can create up to five general sandboxes with fully isolated settings. Stripe recommends general sandboxes for new integrations. Adyen calls it the test environment, PayPal calls it the sandbox.

Can I use a real credit card in a sandbox?

No. Sandboxes only accept the provider's test card numbers: Adyen says its test cards only work on its test platform, and Stripe says you can't accept real payment methods in a sandbox. Stripe's terms also forbid testing in live mode with real payment details.

What is a regulatory sandbox for consumers?

It's a different meaning. A regulatory sandbox is run by a regulator, not a payment provider. The UK Financial Conduct Authority's Regulatory Sandbox lets firms test new products live in the market with real consumers, on a small scale and for a limited time. The FCA says the sandbox is not regulatory exempt.

Sources

Checked October 15, 2026
  1. Stripe Docs, Sandboxes (read October 14, 2026)
  2. Stripe Docs, Testing use cases: compare sandboxes, sandboxes versus live mode (read October 14, 2026)
  3. Stripe Docs, Testing (read October 14, 2026)
  4. Stripe Docs, Go-live checklist (read October 14, 2026)
  5. Adyen Docs, Testing (read October 14, 2026)
  6. Adyen Docs, Test card numbers (read October 14, 2026)
  7. Adyen Docs, Live endpoints (read October 14, 2026)
  8. PayPal Developer, Sandbox testing guide (read October 14, 2026)
  9. PayPal Developer, Sandbox accounts (read October 14, 2026)
  10. PayPal Developer, Get started with PayPal REST APIs (read October 14, 2026)
  11. Financial Conduct Authority, Regulatory Sandbox (read October 14, 2026)

Tagada

One checkout, several processors behind it

Funnels, one-click upsells, subscription billing and payment routing, on one customer record.

  1. 01Create your free account
  2. 02Connect your store or build a checkout
  3. 03Launch funnels, upsells and subscriptions