Questions tagged [android-billing]

Android In-app Billing is a Google Play service that lets you sell digital content from inside your applications.

You can use the service to sell a wide range of content, including downloadable content such as media files or photos, virtual content such as game levels or potions, premium services and features, and more. You can use In-app Billing to sell products as:

Standard in-app products (one-time billing), or

Subscriptions, (recurring, automated billing)

Useful links

475 questions
0
votes
1 answer

Removing subscriptions from my Google store possible - really?

It looks like Google have provided a way to delete in-app subscriptions, but have they? The Developer API docs have a page about deleting inApp products, and while this could be the old "can delete products, can't delete subscriptions" the page…
0
votes
0 answers

Billing Library: A purchase appears as active but doesn't appear in the purchase history

I've recently stumbled upon an interesting case. A user had an active (=non-consumed) one time purchase from a very long ago (it may be important). And queryPurchases() returned this purchase (as expected), but queryPurchaseHistoryAsync() didn't.…
0
votes
0 answers

Problem with unit testing of Billing Library 5 in Android

I'm using wrapper for BillingClient and after migration from Billing Library 4.0 to 5.0 there is an issue with unit testing of specific builder - BillingFlowParams.SubscriptionUpdateParams builder. Specific wrapper's method that is having issue…
Ksenia
  • 3,453
  • 7
  • 31
  • 63
0
votes
1 answer

create google cloud pub/sub for android subscriptions notifications

I am totally lost in this point I have finished my subscriptions payment from android application and I need to listen for any subscription on my own backend server to give subscriber the service, but I don't know how to make this happen in proper…
0
votes
0 answers

google app billing v4 products are not visible when the page is first opened

I was using google app billing v3. I upgraded it to v4. GetSku() gave an error when I upgraded. Doing this with getSkus() and "purchase.getSkus().contains(getResources().getString(R.string.Product_ID)) && purchase.getPurchaseState() ==…
0
votes
0 answers

What is the difference between BillingClient.queryPurchasesAsync() vs Purchases.subscriptionsv2:get?

Can i know what is the difference between BillingClient.queryPurchasesAsync() vs Purchases.subscriptionsv2:get ? I see the documentation for https://developer.android.com/google/play/billing/integrate is using BillingClient. Thank you and much…
0
votes
0 answers

What productId should I use purchases.subscriptions.acknowledge method?

I wanted to acknowledge a subscription purchase made by user. According to Google docs I have to send a subscriptionID, but according to purchases.subscriptionsv2.get it may return more than one line item, each line item contains its own…
0
votes
0 answers

Android billing: startConnection failing randomly

We have an app in production that most of the time works fine when users are purchasing a subscription. But we do get some reports of users not being able to get to the purchase screen. I have identified that these users always get…
Espen
  • 110
  • 8
0
votes
0 answers

Unable to upload bundle to google play console

I've been trying to implement Moisoni's in app billing library while targeting minSDK19 for my application. Following his instructions I added sourceCompatibility JavaVersion.VERSION_1 | targetCompatibility JavaVersion.VERSION_11 |…
0
votes
0 answers

How to maintain the one time puchase and Subscription for android app using the android billing client

Clarification: IAP (one-time purchase) to Subscription monthly and yearly based in android Questions: Can I get the purchase state for both cases? Without affecting the already purchased users. Does the queryPurchaseAsync() will work for both the…
sejn
  • 2,040
  • 6
  • 28
  • 82
0
votes
0 answers

Google Play billing v4: rare NullPointerException on billingClient.querySkuDetailsAsync()

I see in Google Play console that I have the rare following crash (0.25% of sessions): Exception : java.lang.NullPointerException Attempt to invoke virtual method 'void com.android.billingclient.api.a.k(com.android.billingclient.api.f, i1.i)' on a…
toto_tata
  • 14,526
  • 27
  • 108
  • 198
0
votes
2 answers

How to get base plan id from android billing client

I am getting product details (which is nothing but subscription plans offered) using queryProductDetailsAsyc API. It returns productDetails which has all the base plans under a product. these base plans or subscriptionOffers subscriptionOfferDetails…
0
votes
0 answers

Google billing API automatically refunding in-app purchases even after being aknowledged

I tried looking at previous questions and answers but with no luck finding a real solution. I'm acknowledging purchases once they are processed although my users are still automatically refunded. Below is my whole purchase activity. It's a simple…
Bialy
  • 905
  • 2
  • 12
  • 22
0
votes
1 answer

Android billing 5.0.0 sdk compatibility

I have migrated my app to the 5.0.0 version of the billing library, as it is adviced. However, I've found that it's not working properly on old devices in which the old library did work. I've tested it on Android 7 (Nougat API 24), Android 9 (Pie…
0
votes
0 answers

Clarification: Does the billing subscription and handle the subscription state in the UI itself without using the backend for android with Billing SDK

I need to add the subscriptions for my app on the basis of monthly and yearly subscription and I am trying to use the billing subscription support for Android as per this guidelines. Questions: Shall we can implement this support without the help…