src/Payum/Paypal/ExpressCheckout/Nvp/Action/Api/AuthorizeTokenAction.php
public function execute($request)
    {
        /** @var $request AuthorizeToken */
        RequestNotSupportedException::assertSupports($this, $request);

        $model = ArrayObject::ensureArrayObject($request->getModel());
        if (false == $model['TOKEN']) {
            throw new LogicException('The TOKEN must be set by SetExpressCheckout request but it was not executed or failed. Review payment details model for more information');
        }

        if (false == $model['PAYERID'] || $request->isForced()) {
            throw new HttpRedirect(
                $this->api->getAuthorizeTokenUrl($model['TOKEN'], array(
                    'useraction' => $model['AUTHORIZE_TOKEN_USERACTION'],
                    'cmd' => $model['AUTHORIZE_TOKEN_CMD'],
                ))
            );
        }
    }
public function execute($request)
    {
        /** @var $request AuthorizeToken */
        RequestNotSupportedException::assertSupports($this, $request);

        $model = ArrayObject::ensureArrayObject($request->getModel());
        if (false == $model['TOKEN']) {
            throw new LogicException('The TOKEN must be set by SetExpressCheckout request but it was not executed or failed. Review payment details model for more information');
        }

        if (false == $model['PAYERID'] || $request->isForced()) {
            throw new HttpRedirect(
                $this->api->getAuthorizeTokenUrl($model['TOKEN'], array(
                    'useraction' => $model['AUTHORIZE_TOKEN_USERACTION'],
                    'cmd' => $model['AUTHORIZE_TOKEN_CMD'],
                ))
            );
        }
    }
{@inheritDoc}

@throws \Payum\Core\Exception\LogicException if the token not set in the instruction.
@throws \Payum\Core\Reply\HttpRedirect       if authorization required.