Skip to content

Commit

Permalink
Fixing a few typos
Browse files Browse the repository at this point in the history
  • Loading branch information
spaze committed Oct 7, 2020
1 parent 3084f58 commit 7b47fc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ $price->getTaxRate();
## Usage
<a name="calculate-the-gross-price"></a>
### 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]] */);
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7b47fc6

Please sign in to comment.