e-com Posted August 16, 2022 Share Posted August 16, 2022 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 More sharing options...
datakick Posted August 16, 2022 Share Posted August 16, 2022 Looks like the service stopped accepting requests with content type 'application/soap+xml; charset=UTF-8'. Try to apply this fix: https://github.com/thirtybees/vatnumber/commit/e0b2d1f7a67c8a0cdcdfd49f697a2fd71598018e Let me know if it helps. If so, we will release new module version Link to comment Share on other sites More sharing options...
e-com Posted August 16, 2022 Author Share Posted August 16, 2022 Now there's a error on front office, even though the VAT number is definitely correct: There is 1 error VAT number not registered at your tax authorities. Better not to implement this class?https://github.com/cba85/eu-vat-validation/blob/master/src/Validation.php I tested it, it works fine. Link to comment Share on other sites More sharing options...
datakick Posted August 16, 2022 Share Posted August 16, 2022 can you PM me vat# and country code? Link to comment Share on other sites More sharing options...
e-com Posted August 16, 2022 Author Share Posted August 16, 2022 I am testing this number: DE321281763 🙂 https://group.mercedes-benz.com/provider/ Link to comment Share on other sites More sharing options...
datakick Posted August 16, 2022 Share Posted August 16, 2022 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 More sharing options...
e-com Posted August 18, 2022 Author Share Posted August 18, 2022 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now