• Resolved erubbereu

    (@erubbereu)


    Hello,

    We have updated to the latest version of the plugin (v. 1.13.0.200317)

    We just found out that in “Vat number Validation” menu if the requester country is Greece then the Vat number cannot be validated, despite the fact that our VAT number is accepted if we manually check it in the VIES webpage.

    The following error appears:

    Invalid requester VAT number entered in section Options > VIES Validation. The new requester VAT number has NOT been saved, because it would cause the VAT validation to fail at checkout.

    Entered VAT Country: “GR”. Entered VAT Number: “079212922”. Raw validation response (JSON):

    {
    “valid”: null,
    “company_name”: null,
    “company_address”: null,
    “errors”: [],
    “raw_response”: null,
    “euva_validation_result”: “could-not-be-validated”
    }

    We believe that this might be due to the ‘GR’ country prefix (as you can see at the error response)

    https://drive.google.com/file/d/1UuFnM0IZt8sdzjEkWcZHrMqYQTDjxETA/view

    VAT numbers in Greece begin with ‘EL’ instead of ‘GR’. Is this the reason we cannot validate the VAT number?

    The service was working fine until yesterday. Would you mind helping us solve the issue?

    Thank you!

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

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter erubbereu

    (@erubbereu)

    On the debug log the following entries are shown:

    [2020-03-19 12:12:18] wc-aelia-eu-vat-assistant.DEBUG: VAT number validation request. {“Request Arguments”:{“countryCode”:”EL”,”vatNumber”:”079212922″}} {“process_id”:986}
    [2020-03-19 12:12:18] wc-aelia-eu-vat-assistant.DEBUG: VAT number validation complete. {“Country Code”:”EL”,”VAT Number”:”079212922″,”VIES Response”:false} {“process_id”:986}
    [2020-03-19 12:12:18] wc-aelia-eu-vat-assistant.ERROR: EU VAT Number could not be validated due to errors in the communication with the remote service. {“Raw response”:{“valid”:null,”company_name”:null,”company_address”:null,”errors”:[],”raw_response”:null}} {“process_id”:986}

    So, the countryCode should be correct. Can you advise what is the problem?

    Plugin Author Diego

    (@daigo75)

    The error log indicates that the query was correct, using the “EL” country code, however the remote service could not be reached, or did not accept the request. This could be due to issues on the remote service, the EU VAT Assistant can’t do anything about it.

    You can try contacting the VIES support team, to see if they can give some information on why the request was not processed. Alternatively, you can just try a bit later, and see if the service is restored.

    I’m also going to check if there is any known service issue, or if the VIES service has changed in some way, all of a sudden (it would not be the first time).

    For reference, the following FAQ covers the possible reasons of validation errors, and what to do in each case: https://wordpress.org/support/topic/faq-vat-is-not-deducted-when-entering-a-valid-vat-number/

    Thread Starter erubbereu

    (@erubbereu)

    Hello,

    Thank you for looking into this, please let us know if there is any service issue.

    Until then, I guess we shall wait and try again later to see if the problem persists.

    We will let you know if we have any more clue. Thanks again for your time!

    Plugin Author Diego

    (@daigo75)

    As a first glance, it looks like all requests sent to the VIES service are currently rejected, no matter the VAT number. The VIES tool still works fine, but it’s possible that it uses a different mechanism to perform the validation.

    Thread Starter erubbereu

    (@erubbereu)

    Understood,

    Thanks for pointing that out.

    We also found it strange that suddenly the plugin stopped validating VAT numbers although the VAT numbers were validating on the VIES webpage. We have faced similar situations in the past, but both the VIES webpage and the Plugin were not working.

    So should we just wait for the VIES service to get activated again and stop rejecting request?

    Plugin Author Diego

    (@daigo75)

    I will ask to check if there has been any change that could affect the calls to the VAT validation service. The VIES service changed their system a couple of times in the past, without notice, perhaps they need some tweaking.

    Thread Starter erubbereu

    (@erubbereu)

    Okay, thank you.

    If you manage to find a fix please let us know.

    Plugin Author Diego

    (@daigo75)

    We might have found a possible cause of the issue (a change in the service) and how to address it. We’re running a couple of tests to confirm our findings, then we will release an update as soon as possible.

    Plugin Author Diego

    (@daigo75)

    The issue should be fixed in the EU VAT Assistant 1.13.1.200319.

    Thread Starter erubbereu

    (@erubbereu)

    That’s great news and I have to thank you again for the fast procedure.

    We wouldn’t even consider using another alternative as we are very happy with the overall performance and functionality of WooCommerce EU VAT Assistant.

    Plugin Author Diego

    (@daigo75)

    We’re also going to release another update with a small tweak, to show the country name instead of the code when the VAT number can’t be validated. Something like this:

    Invalid requester VAT number entered in section Options > VIES Validation. The new requester VAT number has NOT been saved, because it would cause the VAT validation to fail at checkout.

    Entered VAT Country: “Greece“. Entered VAT Number: “079212922”.

    As you made us notice, Showing “GR” could lead merchant to think that the error is due to the validation using the wrong country code, which is not the case. Showing the country name, and the correct VAT country code in the raw response, will avoid confusion with countries, like Greece, which have a different code in the ISO system than the one used for VAT validation.

    Thread Starter erubbereu

    (@erubbereu)

    I’ve just patched the new version and can confirm that your fix resolved the issue.

    And yes, you are correct about this.

    Showing the country name, and the correct VAT country code in the raw response, will avoid confusion with countries, like Greece, which have a different code in the ISO system than the one used for VAT validation.

    At least this was the case with us. We had to look into the log files to see that in fact the country code is correct.

    Looking forward to the version including this tweak. You may mark this thread as resolved.

    Again, thank you very much for the great support!!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘VAT number not validating for Requester country Greece’ is closed to new replies.