src/Payum/Core/Security/GenericTokenFactory.php
public function createAuthorizeToken($gatewayName, $model, $afterPath, array $afterParameters = [])
    {
        $authorizePath = $this->getPath('authorize');

        $afterToken = $this->createToken($gatewayName, $model, $afterPath, $afterParameters);

        return $this->createToken($gatewayName, $model, $authorizePath, [], $afterToken->getTargetUrl());
    }
public function createAuthorizeToken($gatewayName, $model, $afterPath, array $afterParameters = [])
    {
        $authorizePath = $this->getPath('authorize');

        $afterToken = $this->createToken($gatewayName, $model, $afterPath, $afterParameters);

        return $this->createToken($gatewayName, $model, $authorizePath, [], $afterToken->getTargetUrl());
    }
{@inheritDoc}