Skip to content

Commit 264dfc0

Browse files
authored
Merge pull request #20 from conedevelopment/szepeviktor-patch-1
2 parents d41a91f + 0171d14 commit 264dfc0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SimplePay PHP Client
22

3-
This provides an OpenAPI schema and an auto-generated PHP client as a composer package.
3+
Provides an OpenAPI schema and an auto-generated PHP client as a Composer package.
44

55
> [!WARNING]
66
> This is not an official package.
@@ -47,17 +47,17 @@ $client->api()->doApplePay(...);
4747
4848
### Error Handling
4949

50-
SimplePay responses with `HTTP 200` even if the operation is failed or an error occured. The handle this properly the Client has a built-in middleware that checks whether the response contains any errors, if so, it throws an `ApiException`.
50+
SimplePay responds with `HTTP 200` even if the operation has failed or an error has occured. To handle this properly the Client has a built-in middleware that checks whether the response contains any errors, if so, it throws an `ApiException`.
5151

52-
The message holds the error code and the error message to make easier debugging.
52+
The message holds the error code and the error message to make debugging easier.
5353

5454
```php
5555
use Cone\SimplePay\ApiException;
5656

5757
try {
5858
$client->api()->start(...);
5959
} catch (ApiException $exception) {
60-
// Log the message (starting with the error code)
60+
// Log the message starting with the error code
6161
Log::info($exception->getMessage());
6262

6363
// Log the error code only

0 commit comments

Comments
 (0)