Test your integration
Test your Stripe integration before going live.
Before going live, test your Stripe integration to confirm it handles payments, errors, and edge cases correctly. Stripe provides sandboxes, test card numbers, and test API keys so you can simulate real transactions without moving money or processing payments through card networks.
Test environments
A sandbox is an isolated test environment. Payments, customers, and other objects you create in a sandbox don’t affect your live integration. You can create up to five sandboxes to give teams separate environments, and invite external users without exposing live data. Access your sandboxes from the account picker in the Dashboard or through the Stripe CLI. Learn more about sandboxes and the test mode sandbox.
Test cards and simulated payments
Use test card numbers to simulate successful payments, declines, disputes, refunds, and 3D Secure authentication. Test cards work with your test API keys and behave like real cards—for example, 4242 4242 4242 4242 simulates a successful Visa charge.
You can also test non-card payment methods such as ACH Direct Debit, SEPA, and bank redirects. Each payment method has its own test values.
Webhooks and events
Trigger test events to confirm your webhook endpoints handle notifications correctly. You can send test events from the Dashboard or with the Stripe CLI.