来自 Paypal 的重定向在 Laravel 5.2 中显示错误
Redirection from Paypal showing error in Laravel 5.2
我在 Laravel 5.2 网站上使用 Paypal Pay Now 表格进行付款。我在我的企业资料网站首选项设置中设置了自动 return URL。虽然它重定向到我的网站 URL 然后显示如下错误 -
MethodNotAllowedHttpException in RouteCollection.php line 219:
我在 URL-
的路线中使用 get 方法
Route::get('site/paymentsuccess', 'SiteController@paymentsuccess');
如果我使用 post
方法,那么它会显示 -
TokenMismatchException in VerifyCsrfToken.php line 67:
期待专家的建议。
谢谢
你应该从验证令牌中间件中删除这个 url
转到:app->Http->Middleware->VerifyCsrfToken.php
然后将“/site/paymentsuccess”添加到 $except
数组
我在 Laravel 5.2 网站上使用 Paypal Pay Now 表格进行付款。我在我的企业资料网站首选项设置中设置了自动 return URL。虽然它重定向到我的网站 URL 然后显示如下错误 -
MethodNotAllowedHttpException in RouteCollection.php line 219:
我在 URL-
的路线中使用 get 方法Route::get('site/paymentsuccess', 'SiteController@paymentsuccess');
如果我使用 post
方法,那么它会显示 -
TokenMismatchException in VerifyCsrfToken.php line 67:
期待专家的建议。
谢谢
你应该从验证令牌中间件中删除这个 url
转到:app->Http->Middleware->VerifyCsrfToken.php
然后将“/site/paymentsuccess”添加到 $except
数组