-
Notifications
You must be signed in to change notification settings - Fork 65
Webhook failed with status code 405 (Got HTTP/1.1 405 Method Not Allowed instead of 20x) #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @starlounge , What’s in the application logs in storage/logs? |
Hi @sandervanhooft
} |
The 405 error message suggests the problem occurs at routing level, so the controller is not even invoked. A few things you could check:
|
For debugging it may help to make the post calls using cURL or Postman. |
yes, I use this to create payment:
|
Another note: if I change route verb from |
Are you initializing / interacting with middleware in the PaymentController's _construct method? |
Also check if you have any folder in your |
no interaction with middleware in PaymentController |
You can reach / visit other routes? |
Web app work well, no problem with other routes :-( |
What happens if you try this at the top of
|
Nothing...
|
And with a dummy url? |
I am not sure what's causing this. It's not caused by the Laravel-Mollie package. My last attempt would be to disable all web middleware in the |
Feel free to paste the |
|
Tip: |
Try removing the
|
I think that should do the trick |
Should be:
|
Yeah!!!!! |
@starlounge No problem, happy it works now! :) |
@sandervanhooft can we cover this with more examples? The way the webhook is constructed doesn't seem the right Laravel way to me. |
@willemstuursma I'll open a new issue for this. |
Hi Sander. I'm having the same problem, My web router file:
My controller:
Thank you |
Because I can see 2 different ways of writing it in you examples, I've tried changing The laravel log is also not showing anything usefull. :( |
Haha.. I was going a get instead of post request. Nevermind! 🤣 |
Glad you figured it out @TVBZ . Enjoy! |
Hi,
I'm using larval-mollie.
no problem to generate payment url and make payment with Mollie web form, but my web hook still return 405 error.
Routes/web.php
Route::post('pay/status', ['as' => 'pay.status', 'uses' => 'PaymentController@statusPayment']);
protected $except = [ 'pay/status' ];
But in Mollie transaction detail I have this error:
Webhook failed with status code 405 (Got HTTP/1.1 405 Method Not Allowed instead of 20x)
Any ideas? Thanks!
The text was updated successfully, but these errors were encountered: