namiml / nami-apple-receipt-validator

A simple Python 3 CLI demonstrating how to use Apple's verifyReceipt service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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

About

A simple Python 3 CLI demonstrating how to use Apple's verifyReceipt service

License:MIT License


Languages

Language:Python 100.0%