sjbillingclient 0.1.0__tar.gz → 0.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sjbillingclient-0.1.0 → sjbillingclient-0.1.1}/PKG-INFO +13 -1
- sjbillingclient-0.1.1/README.md +13 -0
- {sjbillingclient-0.1.0 → sjbillingclient-0.1.1}/pyproject.toml +1 -1
- {sjbillingclient-0.1.0 → sjbillingclient-0.1.1}/sjbillingclient/tools/__init__.py +9 -4
- sjbillingclient-0.1.0/README.md +0 -1
- {sjbillingclient-0.1.0 → sjbillingclient-0.1.1}/sjbillingclient/__init__.py +0 -0
- {sjbillingclient-0.1.0 → sjbillingclient-0.1.1}/sjbillingclient/jclass/__init__.py +0 -0
- {sjbillingclient-0.1.0 → sjbillingclient-0.1.1}/sjbillingclient/jclass/acknowledge.py +0 -0
- {sjbillingclient-0.1.0 → sjbillingclient-0.1.1}/sjbillingclient/jclass/billing.py +0 -0
- {sjbillingclient-0.1.0 → sjbillingclient-0.1.1}/sjbillingclient/jclass/consume.py +0 -0
- {sjbillingclient-0.1.0 → sjbillingclient-0.1.1}/sjbillingclient/jclass/purchase.py +0 -0
- {sjbillingclient-0.1.0 → sjbillingclient-0.1.1}/sjbillingclient/jclass/queryproduct.py +0 -0
- {sjbillingclient-0.1.0 → sjbillingclient-0.1.1}/sjbillingclient/jinterface/__init__.py +0 -0
- {sjbillingclient-0.1.0 → sjbillingclient-0.1.1}/sjbillingclient/jinterface/acknowledge.py +0 -0
- {sjbillingclient-0.1.0 → sjbillingclient-0.1.1}/sjbillingclient/jinterface/billing.py +0 -0
- {sjbillingclient-0.1.0 → sjbillingclient-0.1.1}/sjbillingclient/jinterface/consume.py +0 -0
- {sjbillingclient-0.1.0 → sjbillingclient-0.1.1}/sjbillingclient/jinterface/product.py +0 -0
- {sjbillingclient-0.1.0 → sjbillingclient-0.1.1}/sjbillingclient/jinterface/purchases.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: sjbillingclient
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.1
|
4
4
|
Summary:
|
5
5
|
Author: Kenechukwu Akubue
|
6
6
|
Author-email: kengoon19@gmail.com
|
@@ -11,3 +11,15 @@ Description-Content-Type: text/markdown
|
|
11
11
|
|
12
12
|
# SJBillingClient (Google Play Billing SDK for Python)
|
13
13
|
|
14
|
+
|
15
|
+
## Installation
|
16
|
+
```shell
|
17
|
+
# pip
|
18
|
+
|
19
|
+
pip install sjbillingclient
|
20
|
+
|
21
|
+
# buildozer
|
22
|
+
requirements=sjbillingclient
|
23
|
+
android.gradle_dependencies=com.android.billingclient:billing:7.1.1
|
24
|
+
```
|
25
|
+
|
@@ -37,6 +37,9 @@ class BillingClient:
|
|
37
37
|
)
|
38
38
|
self.__billing_client.startConnection(self.__billing_client_state_listener)
|
39
39
|
|
40
|
+
def end_connection(self):
|
41
|
+
self.__billing_client.endConnection()
|
42
|
+
|
40
43
|
def query_product_details_async(self, product_type, products_ids: list, on_product_details_response):
|
41
44
|
List = autoclass("java.util.List")
|
42
45
|
queryProductDetailsParams = (
|
@@ -44,9 +47,9 @@ class BillingClient:
|
|
44
47
|
.setProductList(
|
45
48
|
List.of(*[
|
46
49
|
QueryProductDetailsParamsProduct.newBuilder()
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
+
.setProductId(product_id)
|
51
|
+
.setProductType(product_type)
|
52
|
+
.build()
|
50
53
|
for product_id in products_ids
|
51
54
|
])
|
52
55
|
)
|
@@ -66,8 +69,9 @@ class BillingClient:
|
|
66
69
|
if product_type == ProductType.SUBS:
|
67
70
|
offer_details = product_details.getSubscriptionOfferDetails()
|
68
71
|
for offer in offer_details:
|
69
|
-
pricing_phase = offer.
|
72
|
+
pricing_phase = offer.getPricingPhases().getPricingPhaseList().get(0)
|
70
73
|
details.append({
|
74
|
+
"product_id": product_details.getProductId(),
|
71
75
|
"formatted_price": pricing_phase.getFormattedPrice(),
|
72
76
|
"price_amount_micros": pricing_phase.getPriceAmountMicros,
|
73
77
|
"price_currency_code": pricing_phase.getPriceCurrencyCode(),
|
@@ -76,6 +80,7 @@ class BillingClient:
|
|
76
80
|
elif product_type == ProductType.INAPP:
|
77
81
|
offer_details = product_details.getOneTimePurchaseOfferDetails()
|
78
82
|
details.append({
|
83
|
+
"product_id": product_details.getProductId(),
|
79
84
|
"formatted_price": offer_details.getFormattedPrice(),
|
80
85
|
"price_amount_micros": offer_details.getPriceAmountMicros,
|
81
86
|
"price_currency_code": offer_details.getPriceCurrencyCode(),
|
sjbillingclient-0.1.0/README.md
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
# SJBillingClient (Google Play Billing SDK for Python)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|