sjbillingclient 0.1.0__py3-none-any.whl → 0.1.1__py3-none-any.whl

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.
@@ -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
- .setProductId(product_id)
48
- .setProductType(product_type)
49
- .build()
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.getPricingPhase().getPricingPhaseList().get(0)
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(),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sjbillingclient
3
- Version: 0.1.0
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
+
@@ -11,7 +11,7 @@ sjbillingclient/jinterface/billing.py,sha256=lwBGN8Xe0Qbc1DCRSShrhL8oGqRbjugwrgN
11
11
  sjbillingclient/jinterface/consume.py,sha256=DiugwpRreoVLpPjeHSkNMgncg5f3HnIBCUh0OIyrWhI,524
12
12
  sjbillingclient/jinterface/product.py,sha256=rtlc-4hxToCa3buwNp8QufMYkoiUZHp_YXKeE-QZZyk,562
13
13
  sjbillingclient/jinterface/purchases.py,sha256=BG6xF3H-35_XhiRr2kWDb1jzsxJ-hIw-jaEi-uSkTmY,574
14
- sjbillingclient/tools/__init__.py,sha256=3vvDUv-UKuSc_ENarI0phXQEBoagUIF39cteIfvpirE,6264
15
- sjbillingclient-0.1.0.dist-info/METADATA,sha256=btFmxtCpiYPa0-u6jofd5HcBZGtjwfc8duTnTT-wRTc,343
16
- sjbillingclient-0.1.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
17
- sjbillingclient-0.1.0.dist-info/RECORD,,
14
+ sjbillingclient/tools/__init__.py,sha256=SSq-BgkGt-4ws517TWL5aabaT2gS2pjb38AMXY-OKwU,6458
15
+ sjbillingclient-0.1.1.dist-info/METADATA,sha256=giowS5NzPerZhqEc_7lOO5R2mL53x3aL_sI_F_nnPFc,519
16
+ sjbillingclient-0.1.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
17
+ sjbillingclient-0.1.1.dist-info/RECORD,,