In-app purchase validator for Apple AppStore and GooglePlay.
Project description
inapppy
In-app purchase validator for Apple AppStore and GooglePlay.
Installation
pip install inapppy
Usage
Currently inapppy supports Google Play and App Store receipts validation.
Google Play:
from inapppy import GooglePlayValidator, InAppValidationError
bundle_id = 'com.yourcompany.yourapp'
api_key = 'API key from the developer console'
validator = GooglePlayValidator(bundle_id, api_key)
try:
validation_result = validator.validate('receipt', 'signature')
except InAppValidationError:
""" handle validation error """
App Store:
from inapppy import AppStoreValidator, InAppValidationError
bundle_id = 'com.yourcompany.yourapp'
validator = AppStoreValidator(bundle_id)
try:
validation_result = validator.validate('receipt', 'optional-shared-secret')
except InAppValidationError:
""" handle validation error """
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
inapppy-0.1.tar.gz
(2.5 kB
view hashes)
Built Distribution
inapppy-0.1-py3-none-any.whl
(4.6 kB
view hashes)