dimanche 16 décembre 2018

gocardless webhook 419 Authentication Timeout error

I'm trying to integrate gocardless webhook in my website. I'm developing my site in laravel 5.5. Right now i'm following their instrution. But getting an error 419 Authentication Timeout. I did exactly as followed from their documentation. https://developer.gocardless.com/getting-started/api/staying-up-to-date-with-webhooks/

I created a POST route in my web.php file Route::post('/test', 'GocardlessWebhookController@remote');

Then i put my secret token in my env file. In the controller i copy paste the same code from that site.

Can anyone help me out?



via Chebli Mohamed

1 commentaire:

  1. I think you may need to put your route in the routes/api.php and NOT the routes/web.php because the webhook will not have a csrf token and will be unauthenticated.

    RépondreSupprimer