TL;DR
TL;DR
Before accepting real payments, switch from test to live keys, verify webhooks are secured with signatures, ensure the secret key never touches the browser, test the full payment flow with a real card, and enable Stripe Radar for fraud protection.
API Keys 4
Webhooks 4
Payment Security 3
Business Settings 3
Can I use test keys in production?
No. Test keys only create test charges that don't process real money. You must switch to live keys (sk_live_, pk_live_) to accept real payments.
::
Is it safe to put the publishable key in my frontend?
Yes, the publishable key (pk_) is designed for client-side use. It can only create tokens and cannot access your Stripe account data. The secret key (sk_) must stay server-side.
::
Scan Your Stripe Integration
Find exposed keys and security issues before launch.
Start Free Scan