Lol you answered your question. Stripe secret = secret key
most have a secret and public key. So the naming convention is to start with a noun of what it is for. This case stripe.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi guys, I am configuring stripe and am unable to find the STRIPE_SECRET. This is what services config contains:
'stripe' => [
'model' => App\User::class,
'key' => env('STRIPE_KEY'),
'secret' => env('STRIPE_SECRET'),
]
and my .env file contains:
STRIPE_SECRET=
STRIPE_KEY=sk_test_DNgiBbeRishhp4zLb
Where do I find my Stripe secret? My account settings only provide secret_key and publishable_key
Stripe key is your public key.
You can rename the environment variables as you see fit.
Please or to participate in this conversation.