Error when Commerce validates an EU VAT number:
Warning: SoapClient::__construct(http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl): Failed to open stream: HTTP request failed!

This is because the valiation url requires https instead of http (now).

In
web/modules/contrib/commerce/modules/tax/src/Plugin/Commerce/TaxNumberType/EuropeanUnionVat.php

Change:
http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl
Into:
https://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl

To fix the errors.
This applies to all versions of Commerce.

CommentFileSizeAuthor
drupal-commerce-vies-service-error.png369.25 KBflyke
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

flyke created an issue. See original summary.

  • jsacksick committed 1e9b61e4 on 8.x-2.x authored by flyke
    Issue #3348999 by flyke: Use https instead of http for the VIES service...

  • jsacksick committed 76b20c61 on 3.0.x authored by flyke
    Issue #3348999 by flyke: Use https instead of http for the VIES service...
jsacksick’s picture

Status: Active » Fixed

Thanks for reporting this, committed!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.