You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (! $this->validateVatSum($countryCode, $vatNumber)) {
This condition might be tricky... As my second test I've tried VAT CZ27082440 (the biggest e-shop in our country) which was evaluated by validateVatSum() method as invalid but it's existing and can be properly checked via VIES website.
I understand that the purpose of this is probably reducing requests to VEIS but IMHO I would not trust any EU administrator that a pattern (probably defined by law) for VAT number was fulfilled. As a result of this condition we get faked data, not real data from VIES.
Removing this condition or making it optional would help.
The text was updated successfully, but these errors were encountered:
krzaczek
added a commit
to krzaczek/vies
that referenced
this issue
Nov 6, 2017
@michalsingr Just pushed a patch to fix this issue. Maybe it's a good idea to add a switch that would allow to disable check-sum checking and relay 100% on the VIES API.
vies/src/Vies/Vies.php
Line 222 in c367d11
This condition might be tricky... As my second test I've tried VAT
CZ27082440
(the biggest e-shop in our country) which was evaluated byvalidateVatSum()
method as invalid but it's existing and can be properly checked via VIES website.I understand that the purpose of this is probably reducing requests to VEIS but IMHO I would not trust any EU administrator that a pattern (probably defined by law) for VAT number was fulfilled. As a result of this condition we get faked data, not real data from VIES.
Removing this condition or making it optional would help.
The text was updated successfully, but these errors were encountered: