diff --git a/README.md b/README.md index 2a9d519..79bcf60 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ $price->getTaxRate(); ## Usage ### Calculate the gross price -To calculate the gross price (price with VAT added) use the `calculate` method with a net price, a country code, a postal code (null if unknow) and whether you're calculating VAT for a customer that's a company as paremeters. +To calculate the gross price (price with VAT added) use the `calculate` method with a net price, a country code, a postal code (null if unknown) and whether you're calculating VAT for a customer that's a company as parameters. ```php $grossPrice = $vatCalculator->calculate(24.00, 'DE', null, false /* [, $rateType [, $dateTime]] */); @@ -129,7 +129,7 @@ The given VAT numbers will be truncated and non relevant characters / whitespace This service relies on a third party SOAP API provided by the EU. If, for whatever reason, this API is unavailable a `VatCheckUnavailableException` will be thrown. -If a VAT number from a unsupported/non-EU country is provided, `UnsupportedCountryException` will be thrown. +If a VAT number from an unsupported/non-EU country is provided, `UnsupportedCountryException` will be thrown. ```php try { diff --git a/UPGRADE.md b/UPGRADE.md index 4076086..a4c2988 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -12,7 +12,7 @@ * `getIPBasedCountry()` & `getClientIP()` methods have been removed, use some other package (or `CF-IPCountry` HTTP header if you're behind Cloudflare) * Some methods have been properly *camelCased*: methods like `getClientIP()` -> `getClientIp()` and `shouldCollectVAT` -> `shouldCollectVat` and a few more * `VATCheckUnavailableException` has been *camelCased* to `VatCheckUnavailableException` -* If a VAT number from a unsupported/non-EU country is provided for validation or for `getVatDetails()` call, `UnsupportedCountryException` will be thrown +* If a VAT number from an unsupported/non-EU country is provided for validation or for `getVatDetails()` call, `UnsupportedCountryException` will be thrown * VIES WSDL is now loaded over HTTPS, if you hit issues you should update your system's list of trusted CAs, or install [composer/ca-bundle](https://github.com/composer/ca-bundle), use it [with PHP streams](https://github.com/composer/ca-bundle#to-use-with-php-streams), create your own `SoapClient` instance with `stream_context` option (`new SoapClient(self::VAT_SERVICE_URL, ['stream_context' => $context])`) and use `VatCalculator::setSoapClient()` to use the custom client * Requires PHP 7.3