Jump to content
thirty bees forum

Module "EU VAT Number"


e-com

Recommended Posts

EU VAT number validation has not worked for three days:
VAT number DE285368537 could not get validated due to a validation web service outage (Server error: `POST http://ec.europa.eu/taxation_customs/vies/services/checkVatService` resulted in a `500 Internal Server Error` response: Error 500--Internal Server Error

And VAT number is valid: https://ec.europa.eu/taxation_customs/vies/

Maybe someone knows, what has been changed on EU server?

 

Link to comment
Share on other sites

Yeah, I see the problem. vatnumber module parse data from the response using regexp, which is very fragile.

The php code you posted uses SoapClient instead. It's probably a good idea to use it instead. Some php servers might not have this extension enabled, though. For them the module will not work properly. 

Link to comment
Share on other sites

I have never yet encountered a hosting on which Soap was not installed. If there are such pseudo-hostings, then such a thing should be avoided from afar 🙂
And after Brexit, Northern Ireland code "XI" is missing from getPrefixIntracomVAT() method.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...