magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.55k stars 9.32k forks source link

VAT number validation is not working since some days in Magento2 #32284

Closed rodolfo2111 closed 3 years ago

rodolfo2111 commented 3 years ago

Summary (*)

VAT number validation does not work anymore in Magento When I try to validate a VAT number in the Magento backend Stores --> Configuration --> General --> General I always receive the message: "Error during VAT number verification" . The same problem occurs when I try to automatically check the VAT number of a customer during the registration process. Everything worked fine some days ago - I did not any change on my side in the last weeks and now it stopped working. It seems that something on the VAT service may have changed.

Preconditions (*)

Magento version 2.4.1

Steps to reproduce (*)

Enter a VAT number in the Magneto backend Stores --> Configuration --> General --> General and click the "Validate VAT number button"

Expected result (*)

The expected result should be either the verification that the VAT number is correct or a message which informs me that the VAT number is incorrect.

Actual result (*)

I get the same mesage "Error during VAT number verification", in the case that the VAT number is correct and in the case that the VAT number is incorrect. I checked the WSDL file in vendor/magento/module-customer/Model which is https://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl and tested it with postman and the webserice seems to be up and running. However, obviously it cannot be called by Magento 2.4.1 anymore. Does anybody know if some parameters on the service have changed the last days and which adoptions I have to do tomake it work again.


Bildschirmfoto vom 2021-02-25 10-42-31

m2-assistant[bot] commented 3 years ago

Hi @rodolfo2111. Thank you for your report. To help us process this issue please make sure that you provided the following information:

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento give me 2.4-develop instance - upcoming 2.4.x release

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

Please, add a comment to assign the issue: @magento I am working on this


:clock10: You can find the schedule on the Magento Community Calendar page.

:telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket.

:movie_camera: You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel

:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

devchris79 commented 3 years ago

Magento requires the VAT number without the country code. We use a free extension to allow country codes (CopeX_VatFix).

rodolfo2111 commented 3 years ago

Bildschirmfoto vom 2021-02-25 11-17-06 @devchris79 : I also tried it without the country code and it does not work. However, it also worked with the country code some days ago. So unfortunately this cannot be the reason for the problem

devchris79 commented 3 years ago

@rodolfo2111 The country code is the AT part only (Austria), the U123456 is the code required.

rodolfo2111 commented 3 years ago

@devchris79 : I tried all variants ;-) It does not work. And it definitively worked with the ATU in the past

Bildschirmfoto vom 2021-02-25 11-50-07

devchris79 commented 3 years ago

Try a genuine Austrian VAT number, like this one: U16168803

rodolfo2111 commented 3 years ago

@devchris79 : i tried, also a valid one and the one you provided.
Bildschirmfoto vom 2021-02-25 11-55-43

devchris79 commented 3 years ago

There was #27874 when the validation URL changed, but that was some time ago.

rodolfo2111 commented 3 years ago

yes, I have seen this issue. Since I have the latest Magento version 2.4.1 the link should be correct: 'https://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl'; But maybe some other parameters of the service changed in the last days

rodolfo2111 commented 3 years ago

I identified that the Service is working on my local Magneto instance (which is a 1:1 copy of the live system) correctly ... so it seems to be a problem with my Server instance. I will check this with my provider and keep you updated

rodolfo2111 commented 3 years ago

I identified the following message in the log file: main.CRITICAL: javax.xml.rpc.soap.SOAPFaultException: IP_BLOCKED [] []

nuzil commented 3 years ago

Hey @rodolfo2111 looks like your server is blocking requests to EU Service, so I'm closing issue as its not related to Magento itself.

drinkingsouls commented 2 years ago

Apologies for reopening if this is not a vanilla Magento issue, however I also have this problem.

Magento 2.4.4, PHP8.1, Soap is installed.

I have the following request url in Vat.php: https://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl

Same issue as reported here. "Error during VAT number verification" Tried with and without country code.

I have no logged errors.

@rodolfo2111 did you find a solution?