Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always Invalid country code when trying to get rates #51

Closed
Stelikas opened this issue Jun 6, 2022 · 1 comment
Closed

Always Invalid country code when trying to get rates #51

Stelikas opened this issue Jun 6, 2022 · 1 comment

Comments

@Stelikas
Copy link

Stelikas commented Jun 6, 2022

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;
@Stelikas Stelikas changed the title Invalid country code when trying to get rates Always Invalid country code when trying to get rates Jun 6, 2022
@Stelikas
Copy link
Author

Stelikas commented Jun 6, 2022

That error happened because i had already created the txt file manually.

@Stelikas Stelikas closed this as completed Jun 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant