Skip to main content

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


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)

Uploaded Source

Built Distribution

inapppy-0.1-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page