Exceptions
Exception
Symfony\Component\HttpKernel\Exception\ NotFoundHttpException
if ($hash instanceof TokenInterface) {
$token = $hash;
} else {
if (false == $token = $this->tokenStorage->find($hash)) {
throw new NotFoundHttpException(sprintf('A token with hash `%s` could not be found.', $hash));
}
if (!RequestTokenVerifier::isValid($httpRequest->getUri(), $token->getTargetUrl())) {
throw new HttpException(400, sprintf('The current url %s not match target url %s set in the token.', $httpRequest->getUri(), $token->getTargetUrl()));
}
public function afterCaptureAction(Request $request): Response {
$configuration = $this->requestConfigurationFactory->create($this->orderMetadata, $request);
$token = $this->getHttpRequestVerifier()->verify($request);
$this->logger->debug("token : ".print_r($token, true));
// $this->payLog($token);
/** @var Generic&GetStatusInterface $status */
$status = $this->getStatusRequestFactory->createNewWithModel($token);
$this->logger->debug("status : ".print_r($status, true));
in
vendor/symfony/http-kernel/HttpKernel.php
->
afterCaptureAction
(line 163)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 202)
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$_SERVER['HTTPS'] = 'on';
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
Logs
No log messages
Stack Trace
NotFoundHttpException
|
---|
Symfony\Component\HttpKernel\Exception\NotFoundHttpException: A token with hash `J-bOn_5RhYQRpxXN8ywQdaZatW8TRNFFGLBT2cf8H7s` could not be found. at vendor/payum/payum/src/Payum/Core/Bridge/Symfony/Security/HttpRequestVerifier.php:49 at Payum\Core\Bridge\Symfony\Security\HttpRequestVerifier->verify() (src/Payum/PayumHipay/Action/AfterCaptureAction.php:87) at App\Payum\PayumHipay\Action\AfterCaptureAction->afterCaptureAction() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:75) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:202) at Symfony\Component\HttpKernel\Kernel->handle() (public/index.php:31) |