Skip to content
This repository has been archived by the owner on Oct 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #9 from spaze/spaze/turkey-non-eu-vat
Browse files Browse the repository at this point in the history
Turkey Non-EU VAT rate
  • Loading branch information
spaze committed Sep 3, 2020
2 parents c8af612 + a4c49a1 commit b12a83d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,19 @@ try {
<a name="countries"></a>
## Countries

EU countries are supported as well as some non-EU countries that use VAT. Some countries are not supported even though they also have VAT. Currently, that's the case for Norway which can be added manually with `VatRates::addRateForCountry()`.
EU countries are supported as well as some non-EU countries that use VAT. Some countries are not supported even though they also have VAT. Currently, that's the case for the following countries:
- Norway (NO)
- Turkey (TR)

These can be added manually with `VatRates::addRateForCountry()`:

```php
$vatRates = new VatRates();
$vatRates->addRateForCountry('NO');
$vatCalculator = new VatCalculator($vatRates);
```

Please keep in mind that with countries like Norway you cannot validate VAT ids with `isValidVatNumber()` because it uses VIES, the EU VAT number validation service, and as Norway is not in the EU, it will always come back as invalid.
Please keep in mind that with these countries you cannot validate VAT ids with `isValidVatNumber()` because it uses VIES, the EU VAT number validation service, and as these countries are not part of the EU, it will always come back as invalid.

<a name="license"></a>
## License
Expand Down
3 changes: 3 additions & 0 deletions src/VatRates.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,9 @@ class VatRates
'NO' => [ // Norway
'rate' => 0.25,
],
'TR' => [ // Turkey
'rate' => 0.18,
],
];

/**
Expand Down

0 comments on commit b12a83d

Please sign in to comment.