Skip to content
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

Merged
merged 2 commits into from
Apr 25, 2020
Merged

Fixed #27874 Vat Validation URL for EU Vat numbers changed. #27886

merged 2 commits into from
Apr 25, 2020

Conversation

shikhamis11
Copy link
Member

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 (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds are green)

Fixed #27874 Vat Validation URL for EU Vat numbers changed.
@m2-assistant
Copy link

m2-assistant bot commented Apr 17, 2020

Hi @shikhamis11. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento give me test instance - deploy test instance based on PR changes
  • @magento give me 2.4-develop instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Guide documentation.

Copy link
Contributor

@lbajsarowicz lbajsarowicz left a 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.

@magento-engcom-team
Copy link
Contributor

Hi @lbajsarowicz, thank you for the review.
ENGCOM-7458 has been created to process this Pull Request
✳️ @lbajsarowicz, could you please add one of the following labels to the Pull Request?

Label Description
Auto-Tests: Covered All changes in Pull Request is covered by auto-tests
Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests
Auto-Tests: Not Required Changes in Pull Request does not require coverage by auto-tests

@engcom-Alfa
Copy link
Contributor

✔️ QA Passed

Manual testing scenario:

  1. Go to Admin -> Stores -> Configuration;
  2. Enter the value (AT U38420507 for example) in the VAT Number input field;

Before:
✖️ Error during VAT Number verification.
Screenshot from 2020-04-21 15-27-49
Screenshot from 2020-04-21 15-30-11
Screenshot from 2020-04-21 15-31-23

After: ✔️ VAT Number is valid.
Screenshot from 2020-04-21 15-51-23

@mowny
Copy link

mowny commented Apr 22, 2020

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
So another way to solve this issue would be to poke the EU server's admin to fix the redirect.
But they might have done this on purpose since the new url has been around for a while.

@hostep
Copy link
Contributor

hostep commented Apr 22, 2020

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)

@slavvka slavvka added Priority: P2 A defect with this priority could have functionality issues which are not to expectations. Severity: S2 Major restrictions or short-term circumventions are required until a fix is available. labels Apr 22, 2020
@slavvka slavvka added this to the 2.4.0 milestone Apr 22, 2020
@slavvka slavvka added Severity: S1 Affects critical data or functionality and forces users to employ a workaround. Auto-Tests: Not Required Changes in Pull Request does not require coverage by auto-tests and removed Severity: S2 Major restrictions or short-term circumventions are required until a fix is available. labels Apr 22, 2020
@magento-engcom-team magento-engcom-team merged commit 12d0e76 into magento:2.4-develop Apr 25, 2020
@m2-assistant
Copy link

m2-assistant bot commented Apr 25, 2020

Hi @shikhamis11, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

@drinkingsouls
Copy link

In Magento 2.4.4 I see this fix is included, yet we still cannot validate VAT.
"Error during VAT Number verification." persists.

@engcom-Alfa
Copy link
Contributor

engcom-Alfa commented Aug 8, 2022

hi @drinkingsouls
Thanks for identifying incomplete fix and pointing out the issue.
Can you please help us with your issue description, exact reproducible steps, pre-conditions if there is any, also error screenshots or screen recordings.
Request you, please report as a new PR/ Issue if possible.
Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Tests: Not Required Changes in Pull Request does not require coverage by auto-tests Award: bug fix Community Insider: Cedcommerce community-insider-contribution Component: Customer Priority: P2 A defect with this priority could have functionality issues which are not to expectations. Progress: accept Release Line: 2.4 Severity: S1 Affects critical data or functionality and forces users to employ a workaround.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Vat Validation URL for EU Vat numbers changed. (Vies Service)
10 participants