Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```