Closed (fixed)
Project:
Commerce Core
Version:
3.0.x-dev
Component:
Tax
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Mar 2023 at 08:44 UTC
Updated:
3 Apr 2023 at 08:54 UTC
Jump to comment: Most recent
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 commentedThanks for reporting this, committed!