Stripe API Sandbox
A fully stateful Stripe sandbox environment — 21 resources, 63 pre-seeded records, and 9 test scenarios. Test your Stripe integration without a Stripe account or test mode keys.
Test Scenarios
Switch between scenarios instantly to simulate different Stripe behaviors without code changes.
Payment Declined
Card declined with realistic error codes
Insufficient Funds
402 with balance error response
Refund Flow
Charge → refund lifecycle with state persistence
Webhook Events
payment_intent.succeeded, charge.refunded
Rate Limiting
429 responses with Retry-After headers
Auth Failure
Invalid API key and permission errors
3D Secure
Simulated SCA authentication challenge
Dispute
Chargeback and dispute resolution flow
Happy Path
Successful end-to-end payment flow
Pre-seeded Resources
Every sandbox starts with production-realistic data across all 21 Stripe resource types.
How It Works
- 1
Open the dashboard
Click 'Open Stripe Portal' and a stateful environment is provisioned in under 2 seconds.
- 2
Point your app at the sandbox URL
Replace your Stripe base URL with the sandbox endpoint. No other code changes needed.
- 3
Make real API calls
Create charges, customers, subscriptions — all state persists across requests exactly like the real Stripe API.
- 4
Switch scenarios
Flip to 'Payment Declined' or 'Rate Limiting' from the UI to test error-handling paths in your app.
FAQ
Do I need a Stripe account?
No. FetchSandbox runs a fully local mock of the Stripe API. No Stripe account, no test mode keys, no API rate limits.
Is this different from Stripe's own test mode?
Yes. Stripe's test mode still calls Stripe's servers and requires an account. FetchSandbox runs entirely in your environment — no network calls to Stripe.
Can I add my own test data?
Yes — you can POST to any resource endpoint to add records, and the state persists across calls for the lifetime of the sandbox.
Which Stripe API version is supported?
FetchSandbox uses Stripe's OpenAPI 3.x spec. The bundled spec covers the current stable Stripe API surface including PaymentIntents, Subscriptions, and Webhooks.
Ready to test your Stripe integration?
Free tier — 3 sandboxes, 10,000 requests/month. No credit card required.
Open Stripe Portal