• Resolved dalbello

    (@dalbello)


    On the method “is_valid_vat__premium_only” on functions.php after a REGEX validation of the VAT, the following code is present:

    
        if ( $country === 'IT' ) {
            return true;
        }
    

    Why when the customer billing country is Italy, VAT validation is only based on REGEX and an API call to https://ec.europa.eu/taxation_customs/vies/vatResponse.html is not used?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Daniele Scasciafratte

    (@mte90)

    We added this as because there are various VAT formats in Italy and some of them are not valid with VIES.
    So as example if it is used a fiscal code the VIES will return that is not valid and not able to do the order.

    Plugin Author Daniele Scasciafratte

    (@mte90)

    I am releasing a new version with a bugfix for this.

    Thread Starter dalbello

    (@dalbello)

    Thanks Daniele, just updated to the latest version and it’s now working. ??

    • This reply was modified 3 years ago by dalbello.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘VAT Validation skipped if country == IT?’ is closed to new replies.