Closed Stelikas closed 2 years ago
I'm trying to grab VAT rates for specific countries but i always get the error:
Invalid country code "country"
What i'm doing:
$rates = new Rates($_SERVER["DOCUMENT_ROOT"].'assets/vat.txt'); $rate = $rates->getRateForCountry('NL'); // 21 return $rate;
That error happened because i had already created the txt file manually.
I'm trying to grab VAT rates for specific countries but i always get the error:
What i'm doing: