Core/Curl.php
public function setUrlToCall($urlToCall)
    {
        if (false === filter_var($urlToCall, FILTER_VALIDATE_URL)) {
            /**
             * @var \OxidEsales\PayPalModule\Core\Exception\PayPalException $exception
             */
            $exception = oxNew(\OxidEsales\PayPalModule\Core\Exception\PayPalException::class, 'URL to call is not valid.');
            throw $exception;
        }
        $this->urlToCall = $urlToCall;
    }
public function setUrlToCall($urlToCall)
    {
        if (false === filter_var($urlToCall, FILTER_VALIDATE_URL)) {
            /**
             * @var \OxidEsales\PayPalModule\Core\Exception\PayPalException $exception
             */
            $exception = oxNew(\OxidEsales\PayPalModule\Core\Exception\PayPalException::class, 'URL to call is not valid.');
            throw $exception;
        }
        $this->urlToCall = $urlToCall;
    }
public function setUrlToCall ( $ urlToCall ) { if ( false === filter_var ( $ urlToCall , FILTER_VALIDATE_URL ) ) { /**
             * @var \OxidEsales\PayPalModule\Core\Exception\PayPalException $exception
             */ $ exception = oxNew ( \ OxidEsales \ PayPalModule \ Core \ Exception \ PayPalException :: class , 'URL to call is not valid.' ) ; throw $ exception ; } $ this -> urlToCall = $ urlToCall ; }
Set PayPal URL to call.

@param string $urlToCall PayPal URL to call.

@throws \OxidEsales\PayPalModule\Core\Exception\PayPalException if url is not valid
Set PayPal URL to call .