管理Apple AppStore和Google Play的应用内购买
inapp-purchases的Python项目详细描述
#InApp购买
管理Apple AppStore和Google Play的应用内购买
[![PYPI版本](https://badge.fury.io/py/inapp purchases.svg)(https://badge.fury.io/py/inapp purchases)
[![代码运行状况](https://landscape.io/github/adanmauri/inapp-purchases/master/landscape.svg?style=flat)(https://landscape.io/github/adanmauri/inapp purchases/master)
但是,产品购买可以检索原始数据。
token=-purchase-token'
)
````
``python
``来自inapp_purchases.app_store import app store service
service=appstoreservice(
sandbox=true,
password=“secret-password”
purchase=service.get_subscription_-purchase(
receive-hash data=“receive-hash”
)
``````
response
``python
{
‘bundle_-id':unicode,
‘subscription_-id':unicode,
‘purchase_-id':unicode,
‘original_-purchase_-id':unicode,
“购买日期”:int,
“原始购买日期”:int,
“自动更新”:bool,
“过期日期”:int,
“国家代码”:unicode,
“价格货币代码”:unicode,
“价格金额”:float,
“取消日期”:int,
“取消原因”:unicode,
“付款状态”:int,
“状态”:unicode,
“处于活动状态”:bool,
“处于试用期”:bool,
“过期意图”:unicode,
}
````
管理Apple AppStore和Google Play的应用内购买
[![PYPI版本](https://badge.fury.io/py/inapp purchases.svg)(https://badge.fury.io/py/inapp purchases)
[![代码运行状况](https://landscape.io/github/adanmauri/inapp-purchases/master/landscape.svg?style=flat)(https://landscape.io/github/adanmauri/inapp purchases/master)
但是,产品购买可以检索原始数据。
token=-purchase-token'
)
````
``python
``来自inapp_purchases.app_store import app store service
service=appstoreservice(
sandbox=true,
password=“secret-password”
purchase=service.get_subscription_-purchase(
receive-hash data=“receive-hash”
)
``````
response
``python
{
‘bundle_-id':unicode,
‘subscription_-id':unicode,
‘purchase_-id':unicode,
‘original_-purchase_-id':unicode,
“购买日期”:int,
“原始购买日期”:int,
“自动更新”:bool,
“过期日期”:int,
“国家代码”:unicode,
“价格货币代码”:unicode,
“价格金额”:float,
“取消日期”:int,
“取消原因”:unicode,
“付款状态”:int,
“状态”:unicode,
“处于活动状态”:bool,
“处于试用期”:bool,
“过期意图”:unicode,
}
````