Skip to content

Commit

Permalink
Merge pull request #265 from richzw/master
Browse files Browse the repository at this point in the history
docs(readme): add notes to app store server api on readme
  • Loading branch information
takecy authored Feb 5, 2024
2 parents b3f544b + 1f23501 commit 1579b86
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,15 @@ func main() {

### In App Store Server API

**Note**
- The App Store Server API differentiates between a sandbox and a production environment based on the base URL:
- Use https://api.storekit.itunes.apple.com/ for the production environment.
- Use https://api.storekit-sandbox.itunes.apple.com/ for the sandbox environment.
- If you're unsure about the environment, follow these steps:
- Initiate a call to the endpoint using the production URL. If the call is successful, the transaction identifier is associated with the production environment.
- If you encounter an error code `4040010`, indicating a `TransactionIdNotFoundError`, make a call to the endpoint using the sandbox URL.
- If this call is successful, the transaction identifier is associated with the sandbox environment. If the call fails with the same error code, the transaction identifier doesn't exist in either environment.

- GetTransactionInfo

```go
Expand Down

0 comments on commit 1579b86

Please sign in to comment.