dutchento / m2-vatfallback
Provides free VAT fallback mechanism
Installs: 49 800
Dependents: 1
Suggesters: 0
Security: 0
Stars: 37
Watchers: 5
Forks: 17
Open Issues: 0
Type:magento2-module
Requires
- ext-dom: *
- ext-json: *
- ext-soap: *
- guzzlehttp/guzzle: ^6.2|^7.0
- magento/framework: ^100.0|^101.0|^102.0|^103.0
- magento/module-customer: ^101.0|^102.0|^103.0
- psr/log: ^1.0|^2.0|^3.0
Requires (Dev)
- phpunit/phpunit: ^6.2
README
Vatfallback module provides an API based validation and a fallback offline regex validation for the unstable VIES database used by Magento
Please find the Magento 1 version here.
Supported services
- VIES check (this is the official endpoint but not the built-in Magento version)
- vatlayer.com check
- Regex fallback check for following countries; AT, BE, CZ, DE, CY, DK, EE, GR, ES, FI, FR, GB, HU, IE, IT, LT, LU, LV, MT, NL, PL, PT, SE, SI, SK
- Caching of previous results
Features
-
A plugin that replaces the existing VAT check in Magento Customer implementing various services with means of fallback.
-
Use the console task:
./bin/magento vat:validate NL NL133001477B01
-
Use the API endpoint to get company data by VAT number
http://domain.com/rest/V1/vat/companylookup/NL133001477B01
-
Add a GraphQL endpoint by installing elgentos/m2-vatfallback-graph-ql
-
Caching service for VAT request (be sure to enable the VAT cache under Cache Management)
Installation
composer require dutchento/m2-vatfallback bin/magento setup:upgrade
Tested on
- Magento 2.2
- Magento 2.3
- Magento 2.4
Changelog
See https://github.com/Dutchento/m2-vatfallback/releases
Requirements
- PHP >= 7.0
- GuzzleHTTP
Disclaimer
Warning: Since all of the free VIES API's are slow and somewhat unreliable the checkout steps could become slow while checking.
Authors
Authors M1 Version
- Sander Mangel @sandermangel
- Peter Jaap Blaakmeer @peterjaap
- Laura Folco @lfolco