资源所有者或授权服务器拒绝请求。{" Exception ":"[object] (LeagueOAuth2ServerExceptionOAuthServerException(code: 9)
当我在一个stripe应用程序中退款时,我遇到了这个错误。
显示token
已被撤销。
我该如何解决这个问题?
您可以按照本laracast讨论中建议的那样阻止此异常。
覆盖Handler
类report()
方法并添加以下条件。
public function report(Exception $exception)
{
if ($exception instanceof LeagueOAuth2ServerExceptionOAuthServerException && $exception->getCode() == 9) {
return;
}
parent::report($exception);
}