src/Payum/Paypal/ExpressCheckout/Nvp/Api.php
public function getAuthorizeTokenUrl($token, array $query = array())
    {
        $defaultQuery = array_filter(array(
            'useraction' => $this->options['useraction'],
            'cmd' => $this->options['cmd'],
            'token' => $token,
        ));

        $query = array_filter($query);

        return sprintf(
            'https://%s/cgi-bin/webscr?%s',
            $this->options['sandbox'] ? 'www.sandbox.paypal.com' : 'www.paypal.com',
            http_build_query(array_replace($defaultQuery, $query))
        );
    }
public function getAuthorizeTokenUrl($token, array $query = array())
    {
        $defaultQuery = array_filter(array(
            'useraction' => $this->options['useraction'],
            'cmd' => $this->options['cmd'],
            'token' => $token,
        ));

        $query = array_filter($query);

        return sprintf(
            'https://%s/cgi-bin/webscr?%s',
            $this->options['sandbox'] ? 'www.sandbox.paypal.com' : 'www.paypal.com',
            http_build_query(array_replace($defaultQuery, $query))
        );
    }
@param string $token
@param array  $query

@return string