Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

Manage in-app purchases for Apple AppStore and Google Play

Project description

# inapp-purchases
Manage in-app purchases for Apple AppStore and Google Play

[![PyPI version](](
[![Code Health](](

## Installation
pip install inapp-purchases

## Usage
Currently inapp-purchases supports Google Play and App Store subscription services. But, product purchases is available retrieving raw data.

### Google Play:

from inapp_purchases.google_play import GooglePlayService

service = GooglePlayService(
# or service_account_info='service-info.json'

purchase = service.get_subscription_purchase(

### AppStore:

from inapp_purchases.app_store import AppStoreService

service = AppStoreService(

purchase = service.get_subscription_purchase(

## Response

'bundle_id': unicode,
'subscription_id': unicode,
'purchase_id': unicode,
'original_purchase_id': unicode,
'purchase_date_ms': int,
'original_purchase_date_ms': int,
'auto_renewing': bool,
'expires_date_ms': int,
'country_code': unicode,
'price_currency_code': unicode,
'price_amount': float,
'cancellation_date_ms': int,
'cancellation_reason': unicode,,
'payment_state': int,
'status': unicode,
'is_active': bool,
'is_trial_period': bool,
'expiration_intent': unicode,


- Exceptions
- Google Play products data response (the raw content is returned)
- AppStore products data response (the raw content is returned)
- Get list of products from AppStore
- Tests
- Retrieve more information from the services
- Documentation
- Examples

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
inapp_purchases-0.4.2-py2-none-any.whl (8.4 kB) Copy SHA256 hash SHA256 Wheel py2
inapp_purchases-0.4.2-py3-none-any.whl (8.5 kB) Copy SHA256 hash SHA256 Wheel py3
inapp-purchases-0.4.2.tar.gz (5.2 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page