• Resolved janquint

    (@janquint)


    Hi,

    I’m testing this plugin out if this one suits our needs, but I’m experiencing some issue. The field is visible on the checkout, but it seems the validation doesn’t do anything.

    Putting a correct or incorrect VAT number returns the same result, namely ‘EU VAT Number not valid’. I tried disabling all the other plugins/themes, changed the validation method in the plugin settings (SOAP, cURL, simple) but it’s not working, I’m afraid.

    Can you see what the issue could be?

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

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Omar AlDabbas

    (@omardabbas)

    Hi @janquint

    Please enable logs from Advanced tab, then try to validate a number, come back to logs (link available in same tab), and then check the error messages you see.

    If it was saying SOAPClient class doesn’t exist, please check with your hosting to enable it on your account, if that wasn’t the error message, please paste it here.

    Omar

    Thread Starter janquint

    (@janquint)

    Hi Omar,

    Thanks for the quick response.

    This is the error I’m getting.

    2022-09-16T06:50:12+00:00 INFO Error: VAT ID not valid (Country: [BE]; VAT ID: [123789]; Company: []; Method: [soap])
    `2022-09-16T06:50:12+00:00 INFO Error: Exception: SOAP-ERROR: Parsing WSDL: Couldn’t load from ‘https://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl’ : failed to load external entity “https://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl”
    (Country: []; VAT ID: [BE]; Company: []; Method: [soap])

    When I enter a valid number, the logging does show the validation, but the real time validation is not visible on the front end.

    Kr,
    Jan

    Plugin Author Omar AlDabbas

    (@omardabbas)

    Hi @janquint

    Seems like a security issue, I think you better ask your hosting about this since it might be related to firewall policy (as the error says, it’s now allowing loading external entity).

    Please provide them with the exact message in the log and let us know what they say, will be happy to provide further help upon getting details from them.

    Omar

    Thread Starter janquint

    (@janquint)

    Ok, thanks, Omar. I checked with our hosting service and the error I mentioned above is now gone by making some security changes, but I’m not getting the real time validation field below the field, weirdly enough.

    In the logging I can see the VAT number is validating like it should be + in the settings real time validation is activation, but I can’t see that element loaded in DOM.

    Plugin Author Omar AlDabbas

    (@omardabbas)

    @janquint

    Can you please record the screen showing your settings and what you get on checkout page?

    Omar

    Thread Starter janquint

    (@janquint)

    Hi Omar,

    Sure, on https://www.loom.com/share/92734a14ec6a44e1834b1f4f568563ed you can find a screenshare of the settings and the result I’m getting on the checkout page.

    Thread Starter janquint

    (@janquint)

    Hi Omar,

    Did you have the chance to look in to this, please?

    Jan

    Plugin Author Omar AlDabbas

    (@omardabbas)

    Hi @janquint

    Sorry for the delay getting back to you.

    On the 2nd tab, under “Add progress messages”, I see it’s unticked, please tick that option and see if you get the real time validation and what does it say (valid, invalid, validating, etc..)

    Omar

    Thread Starter janquint

    (@janquint)

    Oh, god, that’s a bit stupid from my side, I didn’t notice that.

    Sorry to waste your time on this :).

    Plugin Author Omar AlDabbas

    (@omardabbas)

    Not at all @janquint

    If you’re enjoying the plugin, it would be great if you can leave us a review 🙂

    Omar

    Hi,

    The plugin has stopped working.
    Doesn’t pass validation of the VATs, which are valid.
    Logs:
    2023-01-03T13:54:18+00:00 INFO Error: Exception: SOAP-ERROR: Parsing WSDL: Couldn’t load from ‘https://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl’ : failed to load external entity “https://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl”
    (Country: [FR]; VAT ID: [4879746979]; Company: []; Method: [soap])
    2023-01-03T13:54:19+00:00 INFO Error: VAT ID not valid (Country: [FR]; VAT ID: [4879746979]; Company: []; Method: [curl])
    2023-01-03T15:03:58+00:00 INFO Error: VAT is not valid (checkout) (Country: [FR]; VAT ID: [FR4879746979]; Company: []; Method: [])

    Server environment:

    SoapClient: OK

    Please, help me!

    Plugin Author Omar AlDabbas

    (@omardabbas)

    Hi @npvlive

    From what I see, your issue is related to using cURL not SOAP (as appearing in the logs), we removed the option to select simple & cURL methods since they are not supported by VIES anymore (only SOAP), not sure how it was working before, anyway, please try installing an older version of this plugin, change validation method to SOAP, then freely update to latest version.

    On a separate note, this thread case is resolved, it would be great if you can please open a new thread and post there if you still encounter issues.

    Omar

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Validation not working’ is closed to new replies.