How to switch between test and live on Stripe
Switch between Stripe's test and live modes using the toggle switch in the top-left corner of your Stripe Dashboard. Test mode allows safe experimentation with fake data, while live mode processes real transactions and requires account activation.
Prerequisites
- Active Stripe account
- Access to Stripe Dashboard
- Understanding of test vs live data differences
- Valid business information for live mode
Step-by-Step Instructions
Log into your Stripe Dashboard
Locate the test/live mode toggle
Switch to test mode
Access test mode features
4242424242424242 for successful payments. Navigate to Developers > API keys to find your test API keys, which start with pk_test_ and sk_test_.Activate your account for live mode
Switch to live mode
Update your application with live API keys
pk_live_ and sk_live_). Update your application's configuration to use these live keys instead of test keys.Verify the mode switch
Common Issues & Troubleshooting
Toggle switch is grayed out or disabled
This usually means your account hasn't been fully activated for live mode yet. Complete the account activation process in Settings > Account details and wait for approval.
Live mode shows no data or transactions
This is normal if you haven't processed any live transactions yet. Live and test data are completely separate - switch back to test mode to see your development data.
API keys not working after switching modes
Ensure you're using the correct API keys for each mode. Test keys start with pk_test_/sk_test_ and live keys start with pk_live_/sk_live_. Update your application configuration accordingly.
Cannot access certain features in live mode
Some features may be restricted until your account is fully verified. Check Settings > Account details for any pending verification requirements or contact Stripe support for assistance.