to my callbackURL through POST method. Now I am using Laravel and I have set the route to handle that request as
Route::post('/handle/some/request');
The problem is that the API logs error 405-Method not allowed on the console. What might be the problem? Anyone?
i think it's for the csrf token. try to add the url in the middleware exeption. <?php namespace App\Http\Middleware; use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware; class VerifyCsrfToken extends Middleware { /** * The URIs that should be excluded from CSRF verification. * * @var array */ protected $except = [ '/payment/update/*', ]; }
Обсуждают сегодня