Skip to content

Commit

Permalink
Merge pull request #226 from richzw/master
Browse files Browse the repository at this point in the history
docs(readme): add error handling to readme
  • Loading branch information
takecy authored Jul 18, 2023
2 parents bf740ab + 1e99a69 commit 0e0a8ea
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ func main() {
response, err := a.GetTransactionInfo(ctx, transactionId)

transantion, err := a.ParseSignedTransaction(response.SignedTransactionInfo)
if err != nil {
// error handling
}

if transaction.TransactionId == transactionId {
// the transaction is valid
Expand Down Expand Up @@ -169,6 +172,10 @@ func main() {
}
}
```
- Error handling
- handler error per [apple store server api error](https://developer.apple.com/documentation/appstoreserverapi/error_codes) document
- [error definition](./appstore/api/error.go)


### Parse Notification from App Store

Expand Down

0 comments on commit 0e0a8ea

Please sign in to comment.