Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
Fix example code in readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pepakriz authored and janlanger committed Nov 28, 2016
1 parent a1108e7 commit e7167d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ try {
$response = $client->send($receipt);
echo $response->getFik();
} catch (\SlevomatEET\FailedRequestException $e) {
echo $e->getRequest()->getPkpCode(); // if request fails you need to print the PKP and BKP codes to receipt
echo $e->getRequestData()->getPkpCode(); // if request fails you need to print the PKP and BKP codes to receipt
} catch (\SlevomatEET\InvalidResponseReceivedException $e) {
echo $e->getResponse()->getRequest()->getPkpCode(); // on invalid response you need to print the PKP and BKP too
}
```

Expand Down

0 comments on commit e7167d3

Please sign in to comment.