api 405 error
i am trying to get a post response to my application from stripe cli. but i get this message. anyone knows what is going on?
6 Replies
are you sure you have this route
api/stripe/webhook
in routes/api.php
?405 mean it does exist but the payload is incorrect, I suspect your forwarding is dropping the webhook secret
Yes it is. How do I enable api routes?
What makes you say the payload is incorrect?
It's a standard response for missing a signature or secret for Stripe.
You can run php artisan route:list to see the API routes, but if it didn't exist you would be triggering a 404.
Check your strip webhook end point code, and see where you are testing for the webhook secret.
If you say so 👍
did you enable it using
php artisan install:api
?
Maybe you could try the route in postman or something like thatIt's working now. I didn't install the api routes