https://github.com/Dutchento/m2-vatfallback
Vatfallback module provides an extra API based validation and a fallback offline regex validation for the unstable VIES database used by Magento
https://github.com/Dutchento/m2-vatfallback
magento magento2-module php7 unstable-vies-database vat-validation
Last synced: about 1 year ago
JSON representation
Vatfallback module provides an extra API based validation and a fallback offline regex validation for the unstable VIES database used by Magento
- Host: GitHub
- URL: https://github.com/Dutchento/m2-vatfallback
- Owner: Dutchento
- License: mit
- Created: 2018-02-09T10:22:23.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-10-16T14:32:48.000Z (over 1 year ago)
- Last Synced: 2024-10-18T11:07:27.322Z (over 1 year ago)
- Topics: magento, magento2-module, php7, unstable-vies-database, vat-validation
- Language: PHP
- Homepage: https://www.dutchento.org
- Size: 140 KB
- Stars: 37
- Watchers: 5
- Forks: 17
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vatfallback for Magento 2
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](https://github.com/sandermangel/rkvatfallback/).
## 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
1) A plugin that replaces the existing VAT check in Magento Customer implementing various services with means of fallback.
2) Use the console task:
`./bin/magento vat:validate NL NL133001477B01`
3) Use the API endpoint to get company data by VAT number
`http://domain.com/rest/V1/vat/companylookup/NL133001477B01`
4) Add a GraphQL endpoint by installing [elgentos/m2-vatfallback-graph-ql](https://github.com/elgentos/m2-vatfallback-graph-ql)
5) Caching service for VAT request (be sure to enable the VAT cache under Cache Management)
## Installation
``` shell
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
- Sander Mangel [Github](https://github.com/sandermangel) [Twitter](https://twitter.com/sandermangel)
- Jeroen Boersma [Github](https://github.com/jeroenboersma) [Twitter](https://twitter.com/srcoder)
- Timon de Groot [Github](https://github.com/tdgroot) [Twitter](https://twitter.com/TimonGreat)
### Authors M1 Version
- Sander Mangel [@sandermangel](https://twitter.com/sandermangel)
- Peter Jaap Blaakmeer [@peterjaap](https://twitter.com/peterjaap)
- Laura Folco [@lfolco](https://twitter.com/lfolco)