pk_live_ and sk_live_, so there is no separate test key to switch to.
Use a separate test organization
The simplest setup keeps test data apart from production:- Create a second organization, such as “Acme (test)”. You can switch between organizations from the dashboard sidebar.
- Build the same products and plans there. Use the same feature and meter keys as production, so your code works against both.
- Connect Stripe with your Stripe test keys (
sk_test_…andpk_test_…). - Use that organization’s public and secret keys in your development and staging environments.
Stripe test cards
Use any future expiry date and any 3-digit CVC.