Skip to main content
Sandbox lets you build and test your whole billing flow, from Checkout to renewals to cancellation, before a real customer sees it. Every workspace starts there, with its own API keys, catalog, customers, balances, usage history and Stripe account, separate from Live, so a test never touches a real customer. A ledger_test_ key reaches Sandbox; API keys explains how the key chooses the environment. In the dashboard, the Sandbox menu at the top of the sidebar holds Go to production. Once you’ve gone to production, it switches between Sandbox and Live. Sandbox pages carry a hatched band across the top; Live pages carry an ink band.

Ledger’s Stripe test account

Sandbox is ready the moment your workspace exists. Ledger creates a Stripe test account for it on Ledger’s Stripe Connect platform, so you can take test payments without a Stripe sign-up. Settings › Stripe shows the account as created by Ledger. Every paid plan syncs to that account, and Checkout runs on it, with zero setup. That includes plans with seat prices, annual and one-off prices, and metered overage: Stripe lists what Ledger creates. The account sends its events to Ledger’s platform endpoint, so webhooks work from the start. To see the Stripe objects in your own Stripe Dashboard, connect your own account’s test mode in Settings › Stripe instead. Stripe explains both ways to connect.

Test payments

Checkout in Sandbox takes Stripe test cards, and every payment is simulated. Use any future expiry date, any three-digit CVC and any postal code. Stripe’s page lists more cards, for declines, disputes and other countries.

Move time forward

Renewals, allowance resets, overage invoices and cancellations happen at the end of a period. In Sandbox, you can put a customer on a Stripe test clock and move it forward to test them in minutes. See Simulate time.

Start over

Deleting a Sandbox customer also deletes its usage events, so you can rerun a test from a clean customer. A coding agent can make a Sandbox workspace and key without an account, then hand it to you to claim. See Build with AI agents.

What differs in Live

Live runs the same code and the same rules, so what passes in Sandbox works in Live. The differences: Free plans work in Live as soon as you have a Live key, because they never reach Stripe. Coupons and promotion codes work the same in both. Production checklist walks through moving to Live and the scenarios to test first.

Rules

  • Paid attaches in Live answer 503 live_charges_disabled until Live is activated.
  • A customer with a Stripe customer balance is refused a paid plan with 409 stripe_customer_balance, in both environments. Clear the balance in Stripe first.

Next steps

Simulate time

Run a customer through renewals and cancellation.

Production checklist

Test the scenarios that matter, then go live.