Skip to content

API reference / Quittio \ Core \ Validation \ Plausibility

VatIdVerifier

interface in quittio/core

Quittio\Core\Validation\Plausibility\VatIdVerifier · Source

Online check of VAT identifiers (e.g. EU VIES). Implementations must never throw because a service is unavailable; they return a result with $valid = null instead.

Methods#

MethodDescription
->verify()Checks $vatId with the online service; returns $valid = null instead of throwing when no statement is possible, and supported = false when the service does not cover the identifier.

verify()#

public function verify(string $vatId): VatIdVerification

Checks $vatId with the online service; returns $valid = null instead of throwing when no statement is possible, and supported = false when the service does not cover the identifier.

ParameterTypeDescription
$vatIdstring
Returns
VatIdVerification

The open core packages are MIT licensed. The legal wording of the country packs must be confirmed by a tax adviser.