2016-05-16 40 views
0

我使用Paypal Pay Now表单在我的Laravel 5.2网站中进行付款。我在我的商业资料网站首选项设置中设置了自动返回网址。虽然其重定向到我的网站的网址,然后显示错误,如以下各项从Paypal重定向显示Laravel 5.2中的错误

MethodNotAllowedHttpException in RouteCollection.php line 219: 

我使用get方法在我的路线的URL-

Route::get('site/paymentsuccess', '[email protected]'); 

如果我使用post方法那么它向我展示 -

TokenMismatchException in VerifyCsrfToken.php line 67: 

期待一些专家的意见。

谢谢

回答

0

您应该删除从verifyToken中间件 这个网址去寿:APP-> HTTP-> Middleware-> VerifyCsrfToken.php ,然后添加 “/网站/ paymentsuccess” 的$except阵列

+0

谢谢!它适用于发布请求并根据您的建议进行更改。 – Thwe