Safeguard
Security Guides•

What can a payment sandbox not tell you before launch?

A sandbox proves your code path, not real money, real banks or real customers. Know the gaps and plan a small, watched live test after you launch.

Safeguard Security Team
4 min read

A sandbox proves that your code handles the vendor's test cases. It cannot prove real card network behavior, real bank delays, real customer mistakes or the settings of your live account. Plan a small, watched live test after launch, and keep a list of what the sandbox could not confirm.

What a sandbox is for

One payment provider describes a sandbox as an isolated test environment. Payments created there are not processed by card networks or payment providers. You can simulate events without moving money, give each team its own sandbox, and invite an external partner to a sandbox without exposing live data. It advises separate sandboxes for local development and continuous integration so automated tests do not affect other settings or data.

That is valuable. It is also the reason for the gaps below.

Gaps to plan for

GapWhy the sandbox cannot cover itWhat to do
Real network responsesPayments are not processed by networks or providersRun a low value live test and watch it end to end
Objects and IDsSandbox objects are not usable in live modeRecreate them in live with the same IDs
Webhook endpointsTest and live endpoints are separateRegister and verify live endpoints
Keys and secretsEach mode has its own keysRotate and store live ones properly
Account settingsLive configuration can differCompare settings side by side
Feature limitsSome features cannot be tested in a sandboxRead the vendor's limitations page
TimingReal bank steps can be slowTest late and out of order events
Human behaviorCustomers abandon, double click and use odd cardsTest duplicates and cancellations

The documentation itself lists limits: for example, one pricing model cannot be tested in a sandbox, and connections between a platform sandbox and connected account sandboxes are not possible.

Make the live test safe

  1. Use a restricted live key with a short expiry, if offered.
  2. Run one low value transaction with a card you control.
  3. Watch the webhook delivery, the order status and your logs together.
  4. Refund it and check the refund event as well.
  5. Confirm receipts and notifications reach the right place.
  6. Revoke the test key, or keep it only if the live service needs it.

What else to verify

Write down the untested list

Keep a short note: what was tested, in which environment, and what was only assumed. That note is useful to reviewers, auditors and your future self.

Where Safeguard fits

Safeguard's compliance and evidence automation can help keep records of test and review results for audits. A free scan can check your dependencies before launch.

Quick check

Is passing every sandbox test enough to launch?

No. It proves your code against test data. Add a small live test and review account settings, webhooks and keys for live mode.

Can I reuse sandbox object IDs in live mode?

Objects themselves do not carry over. Recreate them in live mode, using the same ID values so your code keeps working.

Sources

Last reviewed: 19 October 2026.

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.