• Resolved paweleccel90

    (@paweleccel90)


    Hi!
    We had a problem with VAT number validation fails. Here is some debug logs:

    [2019-10-09 20:31:35] wc-aelia-eu-vat-assistant.INFO: Setting customer VAT exemption. {"Country":"PL","VAT Number":""} {"process_id":67341}
    
    [2019-10-09 20:31:35] wc-aelia-eu-vat-assistant.DEBUG: VAT exemption check completed. {"Customer Exemption":false,"Result":0} {"process_id":67341}
    
    [2019-10-09 20:31:40] wc-aelia-eu-vat-assistant.INFO: Setting customer VAT exemption. {"Country":"PL","VAT Number":"9562310839"} {"process_id":68019}
    
    [2019-10-09 20:31:40] wc-aelia-eu-vat-assistant.DEBUG: VAT number validation complete. {"Country Code":"PL","VAT Number":"9562310839","VIES Response":{"countryCode":"PL","vatNumber":"9562310839","requestDate":"2019-10-09+02:00","valid":"false","traderName":"","traderCompanyType":"---","traderAddress":"","requestIdentifier":""}} {"process_id":68019}
    
    [2019-10-09 20:31:40] wc-aelia-eu-vat-assistant.DEBUG: VAT exemption check completed. {"Customer Exemption":false,"Result":5001} {"process_id":68019}
    
    [2019-10-09 20:31:45] wc-aelia-eu-vat-assistant.DEBUG: VAT number validation complete. {"Country Code":"PL","VAT Number":"9562310839","VIES Response":{"countryCode":"PL","vatNumber":"9562310839","requestDate":"2019-10-09+02:00","valid":"false","traderName":"","traderCompanyType":"---","traderAddress":"","requestIdentifier":""}} {"process_id":69216}

    Can you decode this and let me know what should we do now?
    Best regards
    Pawel

    The page I need help with: [log in to see the link]

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

    (@daigo75)

    It looks like VAT number “PL9562310839” (Polish VAT number) is not valid, that’s why the validation fails. You can check it manually using the VIES service, you will see that it says that the number is not a valid EU VAT number. Entering the correct VAT number should allow the validation to pass.

    Thread Starter paweleccel90

    (@paweleccel90)

    Thanks Diego, I tried once again with valid VAT-EU number and here are my logs:

    [2019-10-10 06:30:55] wc-aelia-eu-vat-assistant.DEBUG: VAT number validation complete. {"Country Code":"PL","VAT Number":"1020001196","VIES Response":{"countryCode":"PL","vatNumber":"1020001196","requestDate":"2019-10-10+02:00","valid":"true","traderName":"ECCEL TECHNOLOGY LIMITED (SPÓŁKA Z OGRANICZONĄ ODPOWIEDZIALNOŚCIĄ) ODDZIAŁ W POLSCE","traderCompanyType":"---","traderAddress":"PRZEMYSŁOWA 8\n85-758 BYDGOSZCZ","requestIdentifier":""}} {"process_id":20138}
    
    [2019-10-10 06:41:18] wc-aelia-eu-vat-assistant.DEBUG: VAT number validation complete. {"Country Code":"PL","VAT Number":"8792697528","VIES Response":{"countryCode":"PL","vatNumber":"8792697528","requestDate":"2019-10-10+02:00","valid":"true","traderName":"DB 77 TAX & LEGAL SPÓŁKA Z OGRANICZONĄ ODPOWIEDZIALNOŚCIĄ","traderCompanyType":"---","traderAddress":"ŻÓŁKIEWSKIEGO 31\n87-100 TORUŃ","requestIdentifier":""}} {"process_id":46616}

    Both are valid, but there is still VAT on my checkout page and I didn’t get any exemption.
    We have been using your plugin for more than a year and at the beginning everything was OK, and now we have such strange problems. I have a file with full logs from about one month. Previous valid VAT numbers were tax exempt, and now the same numbers are not tax exempt. What do you think? Is there some plugin conflict or what? I can send you my log file.

    Cheers
    Pawel

    • This reply was modified 6 years, 8 months ago by paweleccel90.
    Plugin Author Diego

    (@daigo75)

    There hasn’t been any change in the VAT number validation. When a number is valid (like you see in the log), the exemption is applied as it always was. This seems to be the case with the last two numbers you sent:
    – No VAT number: https://prnt.sc/phiu7u
    – PL1020001196: https://prnt.sc/phitqc
    – PL8792697528: https://prnt.sc/phitxv

    Based on the above, the site seems to be working just fine.

    How to isolate the source of conflicts
    If there is a conflict, it might be coming from some other plugin. The logic used to apply an exemption relies on standard WooCommerce functions, and it can be altered by 3rd parties. It happened in the past that the EU VAT Assistant applied an exemption correctly, then something else did something that caused it to be removed.
    The process to identify the sources of conflict is to disable all other plugins (except WooCommerce and the Aelia ones), then enable then one by one, until the issue appears again. This will allow to identify which one(s) contribute to the issue.

    Log file
    The log file is being populated by debug entries (see beginning of the lines):

    [2019-10-10 06:30:55] wc-aelia-eu-vat-assistant.DEBUG

    Most likely, this happens because the “debug mode” option is enabled in WooCommerce > EU VAT Assistant > Support. If you disable it and save the setting, you will no longer have so many log entries.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘VAT number validation fail’ is closed to new replies.