The Storekit Python library provides support for in-app purchases and interactions with the App Store.
Project description
storekit-python
storekit-python is a Python package for accessing and validating App Store in-app purchases.
Table of Contents
Installation
Install via pip:
pip install storekit-python
Quick Start
App Store Server API
Get SignedTokenEncoder parameters reference: Generating tokens for API requests
from storekit.app_store_server_api import BaseUrl, SignedTokenEncoder, ServerAPIClient
client = ServerAPIClient(
base_url=BaseUrl.Production,
signed_token_encoder=SignedTokenEncoder(
key_id="key_id",
private_key="private_key",
issuer_id="issuer_id",
bundle_id="bundle_id",
)
)
response = client.get_all_subscription_statuses("original_transaction_id")
print(response)
App Store Server Notifications
Enabling App Store Server Notifications
from storekit.app_store_server_notifications import ResponseBodyV2
response = ResponseBodyV2.parse_obj(request_data)
print(response)
App Store Receipts
How to generate a password reference: Generating a Shared Secret
from storekit.app_store_receipts import ReceiptsClient, BaseUrl
client = ReceiptsClient(
base_url=BaseUrl.Production,
password="password",
sandbox_client=ReceiptsClient(
base_url=BaseUrl.Sandbox,
password="password",
)
)
response = client.verify_receipt("receipt_data")
print(response)
Contributing
We welcome contributions of all forms! You can participate in this project by reporting issues, submitting PRs, or improving documentation.
License
storekit-python is open-source under the MIT License.
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
storekit_python-0.0.1.tar.gz
(62.1 kB
view hashes)
Built Distribution
Close
Hashes for storekit_python-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3ad2b14fd568a6aaa0b1f41f3d6113d535a764787418f7477e3dacf9c3a5376 |
|
MD5 | 56bb836843d7590493dc75fb18f5c6cf |
|
BLAKE2b-256 | 31af17fd3fafc0c1ac5433c8d8c1dd4ffccf3c5606d3c86997b7442be657bb77 |