https://github.com/space-code/iap
Verifies a purchase receipt via AppStore
https://github.com/space-code/iap
iap iap-verification in-app-purchase
Last synced: 12 months ago
JSON representation
Verifies a purchase receipt via AppStore
- Host: GitHub
- URL: https://github.com/space-code/iap
- Owner: space-code
- License: mit
- Created: 2022-12-29T12:02:09.000Z (about 3 years ago)
- Default Branch: dev
- Last Pushed: 2023-01-17T13:31:10.000Z (about 3 years ago)
- Last Synced: 2025-01-11T06:45:31.366Z (about 1 year ago)
- Topics: iap, iap-verification, in-app-purchase
- Language: Go
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
iap
## Description
`iap` verifies a purchase receipt via AppStore
- [Usage](#usage)
- [Communication](#communication)
- [Contributing](#contributing)
- [Author](#author)
- [License](#license)
## Usage
```go
package appstore
// create an IAP client
client := appstore.New()
// create an validation request
r := appstore.IAPValidationRequest{
ReceiptData: "enter your receipt here",
ExcludeOldTransactions: true,
}
ctx := context.Background()
var response appstore.IAPValidationResponse
// receipt validation
err := v.VerifyReceipt(ctx, req, &response)
```
## Communication
- If you **found a bug**, open an issue.
- If you **have a feature request**, open an issue.
- If you **want to contribute**, submit a pull request.
## Contributing
Please feel free to help out with this project! If you see something that could be made better or want a new feature, open up an issue or send a Pull Request!
## Author
Nikita Vasilev, nv3212@gmail.com
## License
iap is available under the MIT license. See the LICENSE file for more info.