public function getRedirectUrl($option, $payKey)
    {
        $url = $this->config['gateway_url'].'?cmd=';

        if ($option == 'approved') {
            $url .= '_ap-payment&paykey='.$payKey;
        } elseif ($option == 'pre-approved') {
            $url .= '_ap-preapproval&preapprovalkey='.$payKey;
        }

        return $url;
    }
public function getRedirectUrl($option, $payKey)
    {
        $url = $this->config['gateway_url'].'?cmd=';

        if ($option == 'approved') {
            $url .= '_ap-payment&paykey='.$payKey;
        } elseif ($option == 'pre-approved') {
            $url .= '_ap-preapproval&preapprovalkey='.$payKey;
        }

        return $url;
    }
public function getRedirectUrl ( $ option , $ payKey ) { $ url = $ this -> config [ 'gateway_url' ] . '?cmd=' ; if ( $ option == 'approved' ) { $ url .= '_ap-payment&paykey=' . $ payKey ; } elseif ( $ option == 'pre-approved' ) { $ url .= '_ap-preapproval&preapprovalkey=' . $ payKey ; } return $ url ; }
Get PayPal redirect url for processing payment.

@param string $option
@param string $payKey

@return string
Get PayPal redirect url for processing payment .