public function setCallbackUrl($value)
    {
        $this->callbackUrl = filter_var($value, FILTER_VALIDATE_URL, FILTER_FLAG_HOST_REQUIRED);

        if (!$this->callbackUrl) {
            throw new \Exception('Invalid URL.');
        }

        return $this;
    }
public function setCallbackUrl($value)
    {
        $this->callbackUrl = filter_var($value, FILTER_VALIDATE_URL, FILTER_FLAG_HOST_REQUIRED);

        if (!$this->callbackUrl) {
            throw new \Exception('Invalid URL.');
        }

        return $this;
    }
public function setCallbackUrl ( $ value ) { $ this -> callbackUrl = filter_var ( $ value , FILTER_VALIDATE_URL , FILTER_FLAG_HOST_REQUIRED ) ; if ( ! $ this -> callbackUrl ) { throw new \ Exception ( 'Invalid URL.' ) ; } return $ this ; }
Set the Callback URL.

@param string $value Callback url.
@throws \Exception if the URL is not valid.
@return object the current instance.
Set the Callback URL .