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

FutureWeb's avatar

Paypal IPN Laravel 5.1 - 405 Not allowed??

Hi LaraPeeps,

I am trying to use the paypal Ipn to log donations - I have disables csrf for the route using:

protected $except = [
    'payments/paypal'
];

in app/http/middleware/verifycsrftoken

but I still get a 405 from the paypal sandbox ipn testing tool :(

I have tried ready made curl, fsocket and even the fahim laravel package but cannot get a thing to work!! its driving me insane.

0 likes
3 replies
bobbybouwmann's avatar
Level 88

Are you sure you have set up a post route? Maybe you can show us what your code is doing and how you have set up everything

1 like
FutureWeb's avatar

Hahahaha what a mistakea-to-makea!! I have it as get not post!!

Please or to participate in this conversation.