-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed #27874 Vat Validation URL for EU Vat numbers changed. #27886
Fixed #27874 Vat Validation URL for EU Vat numbers changed. #27886
Conversation
Fixed #27874 Vat Validation URL for EU Vat numbers changed.
Hi @shikhamis11. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. Very important change.
Hi @lbajsarowicz, thank you for the review.
|
This is also needed for previous magento2 versions, not only 2.4. The EU server even has a redirect for the old url, but they botched it and redirect to a server name that is not in public DNS: http://taxudp92.cc.cec.eu.int:7174/taxation_customs/vies/checkVatService.wsdl |
Yeah, this might warrant an official hotfix from Magento which can be applied to all Magento 2.0, 2.1, 2.2, 2.3 shops (believe me there are still 2.0 & 2.1 shops around which are also running into this issue) |
Hi @shikhamis11, thank you for your contribution! |
In Magento 2.4.4 I see this fix is included, yet we still cannot validate VAT. |
hi @drinkingsouls |
Fixed #27874 Vat Validation URL for EU Vat numbers changed.
An Vat Validation is not possible anymore because in the file:
https://github.com/magento/magento2/blob/2.4-develop/app/code/Magento/Customer/Model/Vat.php
On line 47 the is the following code available
const VAT_VALIDATION_WSDL_URL = 'http://ec.europa.eu/taxation_customs/vies/services/checkVatService?wsdl';
This url is not working anymore and should be changed to the new one to get it working again:
[http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl]
New Code
' const VAT_VALIDATION_WSDL_URL = 'http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl';
For Testing purpose you can check
VAT Number : AT U38420507
https://ec.europa.eu/taxation_customs/vies/viesquer.do?selectedLanguage=PL&ms=AT&iso=AT&vat=U38420507&name=&companyType=&street1=&postcode=&city=&requesterMs=&requesterIso=&requesterVat=
Contribution checklist (*)