codeXX's avatar

Laravel Cashier + stripecli - 405 response to all events

I am trying to listen to webhook events for stripe and I am seeing 405 response in the CLI, no events triggered in the Laravel. Here is my setup:

I have added the CSRF exception in bootstrap/app

''' $middleware->validateCsrfTokens(except: [ 'stripe/*', ]); '''

I am running the stripecli from docker with host network. I added the STRIPE_WEBHOOK_SECRET and the value is from the stripecli output after running the listen command.

0 likes
1 reply
codeXX's avatar
codeXX
OP
Best Answer
Level 1

Figured it out. I was using the wrong URL in the stripecli for those who encounter the same make sure you use the correct endpoint i.e. http://localhost:8080/stripe/webhook

Please or to participate in this conversation.