Exceptions

A token with hash `J-bOn_5RhYQRpxXN8ywQdaZatW8TRNFFGLBT2cf8H7s` could not be found.

Exception

Symfony\Component\HttpKernel\Exception\ NotFoundHttpException

  1.         if ($hash instanceof TokenInterface) {
  2.             $token $hash;
  3.         } else {
  4.             if (false == $token $this->tokenStorage->find($hash)) {
  5.                 throw new NotFoundHttpException(sprintf('A token with hash `%s` could not be found.'$hash));
  6.             }
  7.             if (!RequestTokenVerifier::isValid($httpRequest->getUri(), $token->getTargetUrl())) {
  8.                 throw new HttpException(400sprintf('The current url %s not match target url %s set in the token.'$httpRequest->getUri(), $token->getTargetUrl()));
  9.             }
HttpRequestVerifier->verify() in src/Payum/PayumHipay/Action/AfterCaptureAction.php (line 87)
  1.     public function afterCaptureAction(Request $request): Response {
  2.         
  3.         $configuration $this->requestConfigurationFactory->create($this->orderMetadata$request);
  4.         $token $this->getHttpRequestVerifier()->verify($request);
  5.         $this->logger->debug("token : ".print_r($tokentrue));
  6.         // $this->payLog($token);
  7.         /** @var Generic&GetStatusInterface $status */
  8.         $status $this->getStatusRequestFactory->createNewWithModel($token);
  9.         $this->logger->debug("status : ".print_r($statustrue));
in vendor/symfony/http-kernel/HttpKernel.php -> afterCaptureAction (line 163)
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
Kernel->handle() in public/index.php (line 31)
  1. $_SERVER['HTTPS'] = 'on';
  2. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  3. $request Request::createFromGlobals();
  4. $response $kernel->handle($request);
  5. $response->send();
  6. $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)