OXID eShop CE
6.1.5
|
Public Member Functions | |
__construct () | |
validate (\OxidEsales\Eshop\Application\Model\CompanyVatIn $oVatIn) | |
catchWarning ($iErrNo, $sErrStr, $sErrFile, $iErrLine) | |
getWsdlUrl () | |
Public Attributes | |
const | BUSY_RETRY_CNT = 1 |
const | BUSY_RETRY_WAITUSEC = 500000 |
Protected Member Functions | |
_isServiceAvailable () | |
_checkOnline ($oCheckVat) | |
Protected Attributes | |
$_blServiceIsOn = null | |
$_sWsdl = 'http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl' | |
Static Protected Attributes | |
static | $_aVatCheckCache = [] |
Online VAT id checker class.
OxidEsales\EshopCommunity\Core\OnlineVatIdCheck::__construct | ( | ) |
Class constructor.
|
protected |
Checks online if USt.ID number is valid. Returns true on success. On error sets error value.
object | $oCheckVat | vat object |
|
protected |
Checks if VAT check can be performed:
OxidEsales\EshopCommunity\Core\OnlineVatIdCheck::catchWarning | ( | $iErrNo, | |
$sErrStr, | |||
$sErrFile, | |||
$iErrLine | |||
) |
Catches soap warning which is usually thrown due to service problems. Return true and allows to continue process
int | $iErrNo | error type number |
string | $sErrStr | error message |
string | $sErrFile | error file |
int | $iErrLine | error line |
OxidEsales\EshopCommunity\Core\OnlineVatIdCheck::getWsdlUrl | ( | ) |
Returns wsdl url
OxidEsales\EshopCommunity\Core\OnlineVatIdCheck::validate | ( | \OxidEsales\Eshop\Application\Model\CompanyVatIn | $oVatIn | ) |
Validates VAT.
\OxidEsales\Eshop\Application\Model\CompanyVatIn | $oVatIn | Company VAT identification number object. |
|
staticprotected |
|
protected |
|
protected |
const OxidEsales\EshopCommunity\Core\OnlineVatIdCheck::BUSY_RETRY_CNT = 1 |
How many times to retry check if server is busy
const OxidEsales\EshopCommunity\Core\OnlineVatIdCheck::BUSY_RETRY_WAITUSEC = 500000 |
How much to wait between retries (in micro seconds)