Questions tagged [google-play-billing]
77 questions
16
votes
1 answer
Google Play Billing Library: Determine base plan / expiry of subscription purchase
I am using the Google Play Billing Library 5 and have a subscription product with different base plans.
When processing the purchases in the PurchasesUpdatedListener or in the callback of queryPurchasesAsync, I receive a list of Purchase objects…

jake n
- 342
- 3
- 15
9
votes
1 answer
Google Play Billing: Pending purchases not available for subscriptions?
Context: We have a TV app that offers as its only in-app item a monthly subscription.
I am mostly looking for confirmation of what I believe to be true:
Since version 2.0 of the Google Play Billing Library there is a thing called pending purchases.…

david.mihola
- 12,062
- 8
- 49
- 73
7
votes
3 answers
Google billing Internal Test : Test Card not showing
I have my app in the internal testing track but when Testing, the test card did not show up and it asked for the real credit card on both real and virtual devices.
I have tried some method recommended by StaclkOverFlow such as removing all GG…

Dinh Quang Tuan
- 468
- 3
- 10
7
votes
2 answers
Android Billing 4.0.0 - No purchase result querySkuDetailsAsync()
I migrated Google Play Billing Library in Android Studio from 3.0.3 (was working fine) to 4.0.0.
I've checked my Google Play Billing and all seems OK and the SKU status is ACTIVE (no red flags).
I've tried my best to follow migration instructions @…

Maasaivatar
- 141
- 1
- 6
6
votes
1 answer
Get specific offer from Purchase object Play Billing v5
How to identify the specific subscription offer from Purchase object in new Google Play Billing v5 library? I can get the product id but there seems to be now way get offer id or token? In that case how do I notify users if they wish to…

aryal
- 61
- 2
5
votes
3 answers
billingClient!!.queryProductDetailsAsync does not return any products from Google play console
I am implementing a subscription with Google billing in my android application.
I have followed Google Play Billing official documentation.
I have created subscriptions in Play Console and added relevant functionalities to my application.
The…

Waseem
- 439
- 3
- 18
5
votes
0 answers
Android google play billing 4 "Too many receivers, total of 1000, registered for pid: 31647, callerPackage: ... "
I'm getting this crash only on some devices. This happens right when I try to build a new BillingClient.
And I can't properly debug this issue since it doesn't happen on any of my devices.
Again, this doesn't happen in every device, Only in, like…

Peyman
- 941
- 8
- 28
5
votes
0 answers
Google Play Billing Library 3.0.3 causing memory leak
According to release notes of Play Billing library 3.0.3 the memory leak has been fixed. But i am still getting this leak from Leak Canary
Google Play Billing Library release notes
Code where I am setting up the BillingClient (onCreate of my…

Sourin Ghosh
- 803
- 1
- 7
- 10
5
votes
0 answers
What is the difference between BillingClient.queryPurchases vs IInAppBillingService.getPurchases (for account hold and restore implementation)
I'm trying to implement the account hold and restore stuff that Google Play is starting to require by Nov 1, 2020. In the documentation it states
"If your app relies solely on queryPurchases() to determine whether a user is entitled to a…

Anna Harrison
- 641
- 5
- 13
4
votes
0 answers
How can I use a Google subscription linkedPurchaseToken without the productId/sku?
Problem
Given a linkedPurchaseToken, I would like to get the associated subscription info from Google. But the Google Get Subscription API requires the product id (i.e. sku) of the subscription - which will probably have changed since new purchase…

Gabe Haack
- 536
- 4
- 7
3
votes
2 answers
When developing Google Play Billing Subscriptions. What is the trigger that puts the "In app purchases" section in the play store?
I am currently looking at adding Google Play Subscription (V5) to an application. But that app is in the store and does not currently have subscriptions. I do not want to prematurely add the "In app purchases" section in the play store until we are…

Aaron Fleshner
- 659
- 3
- 9
3
votes
0 answers
Is there a way to auto populate promo code programmatically in redeem code text box android
I have integrated Android Google play billing library 4.0.0 in my app. Created a subscription and created a Custom Promo Code for that subscription. Everything works fine but currently I have to select redeem code in the app and apply this custom…

marsuser
- 125
- 9
3
votes
0 answers
Google Play Billing Library 4.0.0 - querySkuDetailsAsync does not retreive all the sku details
I implemented in-app billing using com.android.billingclient:billing:4.0.0 library
The skuList I provide contains 8 elements. I get the results only for 7.
The one that is excluded does exist; so the problem is not about my app missing one product
…

Alex Busuioc
- 992
- 1
- 11
- 24
3
votes
2 answers
What do I need to do to update my game to Google Play Billing 3?
I'm using Unity 2018.4.22 and I've installed In App Purchasing 2.2.2 from Package Manager.
When I try to upload my game to Google Play Store, it gives me this error:
We've detected that this app is using an old version of Google Play Billing. By…

Daniel
- 7,357
- 7
- 32
- 84
3
votes
2 answers
Android - queryPurchase() returns an empty list but I purchased an in app product
I have implemented in app products in my app. I can make successful purchase and everything works fine. But in one device, purchase doesn't work although when I try to make a purchase again, I get the response "Product already owned" which shows…

Nafia Mahjabin
- 81
- 6