gocardless

Implement Gocardless webhook in Laravel

倖福魔咒の 提交于 2019-12-24 05:41:12
问题 I was trying to implement a webhook in laravel. I have created access token and created webhook endpoint also. my webhook end point is like,https://www.example.com/gocardless.php and my route is like, Route::get('/gocardless.php', '\App\Http\Controllers\gocardlessController@remote')->name('remote'); Controller code like, class gocardlessController extends Controller { public function remote(Request $request) { $token ="token"; $raw_payload = file_get_contents('php://input'); $headers =

gocardless webhook 419 Authentication Timeout error

感情迁移 提交于 2019-12-11 17:12:48
问题 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