laravel-mollie: Webhook failed with status code 405 (Got HTTP/1.1 405 Method Not Allowed instead of 20x)

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']);

  • the controller is not protected by auth middleware;
  • pay/status is the web hook url;
  • in Http/Middleware/VerifyCsrfToken I have insert: 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!

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 30 (1 by maintainers)

Most upvoted comments

Yeah!!! It works! Many thanks man!