Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
drupal-commerce-vies-service-error.png | 369.25 KB | flyke |
Comments
Comment #4
jsacksick CreditAttribution: jsacksick at Centarro commentedThanks for reporting this, committed!