Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/namiml/nami-apple-receipt-validator
A simple Python 3 CLI demonstrating how to use Apple's verifyReceipt service
https://github.com/namiml/nami-apple-receipt-validator
apple apple-verifyreceipt-service in-app-purchase ios storekit
Last synced: about 1 month ago
JSON representation
A simple Python 3 CLI demonstrating how to use Apple's verifyReceipt service
- Host: GitHub
- URL: https://github.com/namiml/nami-apple-receipt-validator
- Owner: namiml
- License: mit
- Created: 2020-08-10T05:15:03.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-03T18:32:55.000Z (almost 3 years ago)
- Last Synced: 2024-07-30T16:58:34.626Z (5 months ago)
- Topics: apple, apple-verifyreceipt-service, in-app-purchase, ios, storekit
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 10
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nami-apple-receip-validator
A simple Python 3 CLI for validating an App Store Receipt via Apple's verifyReceipt service.
This repository accompanies [this tutorial](https://www.namiml.com/blog/app-store-receipt-verification-tutorial)### Production
```
./apple_receipt_validator.py /path/to/base64_encoded_receipt
```### Sandbox
```
./apple_receipt_validator.py /path/to/base64_encoded_receipt --use_sandbox
```### Specify an App Store Shared Secret
This is necessary to receive responses for receipts containing auto-renewnable subscriptions
```
./apple_receipt_validator.py /path/to/base64_encoded_receipt -s your_app_shared_secret
```### Don't print responseBody to console
```
./apple_receipt_validator.py /path/to/base64_encoded_receipt --quiet
```