Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

waleedviews's avatar

Endpoint URL for stripe webhook secret

Hey everyone, i am very new to laravel cashier and trying to understand how it works, can someone help me how to generate Endpoint URL for STRIPE_WEBHOOK_SECRET https://laravel.com/docs/9.x/billing#api-keys

thank you.

0 likes
3 replies
thinkverse's avatar
Level 15

If you have all the keys set in your environment variables then webhook verification is handled automatically by Laravel, all you need to do is run the command php artisan cashier:webhook and it sets it up for you. It is talked about a little further down in the documentation under handling Stripe webhooks. I recommend you read that section. 🙂

1 like
martinbean's avatar

@waleedviews It’s not an “endpoint”. It’s a secret key that’s use to verify a webhook hitting your controller actually came from Stripe.

You’ll find your webhook secret value in your Stripe Dashboard.

Please or to participate in this conversation.