Coder Social home page Coder Social logo

sanderjongsma / m2-vatfallback Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dutchento/m2-vatfallback

0.0 2.0 0.0 131 KB

Vatfallback module provides an extra API based validation and a fallback offline regex validation for the unstable VIES database used by Magento

Home Page: https://www.dutchento.org

License: MIT License

PHP 100.00%

m2-vatfallback's Introduction

Vatfallback for Magento 2

Vatfallback module provides an extra 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

  • Built in Magento VIES check
  • Custom VIES check (this is not the official endpoint but an internal one)
  • 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

Features

  1. A plugin wraps the existing Vat check in Magento Customer implementing various services as 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

Installation

composer require dutchento/m2-vatfallback
bin/magento setup:upgrade

Tested on

  • Magento 2.2 Community & Commerce
  • Magento 2.3 Community

Changelog

[1.5.0] Better error handling if services are unavailable, no next service checking if 100% sure invalid result

[1.4.0] Refactor __constructors, decoupled validationservices from validator

[1.3.0] Regex validation now configurable via XML. Improved tests and regex validation

[1.2.0] added a timeout sys conf value for connecting to APIs

[1.1.1] fixed a logic error in calling fallback services including a false positives fix for the unofficial VIES endpoint by Laura Folco

[1.1.0] add an API endpoint for company data

[1.0.0] ported version of the Magento 1 module

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

m2-vatfallback's People

Contributors

jeroenboersma avatar jissereitsma avatar peterjaap avatar sanderjongsma avatar sandermangel avatar tdgroot avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.