Model
Vat
Magento\Customer\Model\Vat
What it does
This class handles VAT (Value Added Tax) number validation for EU customers in Magento 2.
Developers use it to validate VAT numbers through the European VIES system, automatically assign customers to appropriate tax groups based on their VAT status (domestic, intra-union, invalid, or error), and determine if a country is part of the EU for tax purposes.
Public Methods
- getMerchantCountryCode()
- getMerchantVatNumber()
- getCustomerGroupIdBasedOnVatNumber()
- checkVatNumber()
- canCheckVatNumber()
- getCustomerVatClass()
- isCountryInEU()