src/Payum/Core/Bridge/PlainPhp/Security/TokenFactory.php
protected function generateUrl($path, array $parameters = [])
    {
        $newPath = (new Path($this->baseUrl->getPath()))->withTrailingSlash().$path;

        $uri = $this->baseUrl->withPath($newPath);
        $uri = $this->addQueryToUri($uri, $parameters);

        return (string) $uri;
    }
protected function generateUrl($path, array $parameters = [])
    {
        $newPath = (new Path($this->baseUrl->getPath()))->withTrailingSlash().$path;

        $uri = $this->baseUrl->withPath($newPath);
        $uri = $this->addQueryToUri($uri, $parameters);

        return (string) $uri;
    }
{@inheritDoc}