source/Core/OnlineVatIdCheck.php
public function validate(\OxidEsales\Eshop\Application\Model\CompanyVatIn $oVatIn)
    {
        $oCheckVat = new stdClass();
        $oCheckVat->countryCode = $oVatIn->getCountryCode();
        $oCheckVat->vatNumber = $oVatIn->getNumbers();

        $blResult = $this->_checkOnline($oCheckVat);
        if (!$blResult) {
            $this->setError('ID_NOT_VALID');
        }

        return $blResult;
    }
public function validate(\OxidEsales\Eshop\Application\Model\CompanyVatIn $oVatIn)
    {
        $oCheckVat = new stdClass();
        $oCheckVat->countryCode = $oVatIn->getCountryCode();
        $oCheckVat->vatNumber = $oVatIn->getNumbers();

        $blResult = $this->_checkOnline($oCheckVat);
        if (!$blResult) {
            $this->setError('ID_NOT_VALID');
        }

        return $blResult;
    }
public function validate ( \ OxidEsales \ Eshop \ Application \ Model \ CompanyVatIn $ oVatIn ) { $ oCheckVat = new stdClass ( ) ; $ oCheckVat -> countryCode = $ oVatIn -> getCountryCode ( ) ; $ oCheckVat -> vatNumber = $ oVatIn -> getNumbers ( ) ; $ blResult = $ this -> _checkOnline ( $ oCheckVat ) ; if ( ! $ blResult ) { $ this -> setError ( 'ID_NOT_VALID' ) ; } return $ blResult ; }
Validates VAT.

@param \OxidEsales\Eshop\Application\Model\CompanyVatIn $oVatIn Company VAT identification number object.

@return bool
Validates VAT .