Questions tagged [play-billing-library]

Anything specific to Google Play Billing library

play-billing-library
Filter by
Sorted by
Tagged with
1 vote
1 answer
750 views

Checking if in-app purchases are supported in user's Google Play country on Android

I require in-app purchases for certain functionality in my Android App. For users in countries where in-app purchases are not supported I want to make this functionality available for free. How can ...
jake n's user avatar
  • 431
2 votes
1 answer
1k views

Google Play Billing 5 - How to get the base price for subscriptions when you have multiple offers?

With the Billing 5 library, Google introduces Base plans, offers, and pricing phases. Many new things to digest... I want to display only the base plan price for all the subscriptions. From what I can ...
Alex Busuioc's user avatar
  • 1,092
3 votes
1 answer
233 views

Unable to execute billing on LG Nexus 5X

My app has in-app purchases. I use the billing library: def billing_version = "4.1.0" implementation("com.android.billingclient:billing:$billing_version") implementation("com....
bic55's user avatar
  • 93
2 votes
0 answers
43 views

Android Billing test purchase id deprecated?

I used test puchase ids such as "android.test.purchased" for my instrumentation tests. When I last run these tests they failed on every device, as the dialog does not show any "Purchase ...
Aorlinn's user avatar
  • 738
0 votes
1 answer
125 views

Can a subscription contain an auto-renewing base plan without any offer?

In Google Billing Library 5.0, a subscription can contain one or more base plans and a single base plan can have multiple offers. Also, offers can be created only for the auto-renewing base plans (...
Ksenia's user avatar
  • 3,613
1 vote
0 answers
364 views

Cannot resolve: Purchase.PurchasesResult purchasesResult

I'm trying to convert android billing version 3 to android billing version 5. But I have a problem in this function, I have no idea how to change it to make it work: @Override public void ...
WaLiD FeKrY's user avatar
1 vote
1 answer
792 views

How to query multiple products with different types from Google Play Billing 5?

I upgraded to Google Play Billing 5 in the hopes that I could use the new queryProductDetailsAsync method to query a list of products with differing BillingClient.ProductType types. I saw nothing in ...
user18208230's user avatar
3 votes
0 answers
200 views

Google Play billing no action when trial ends

I'm using google play billing library 4.0.0 for subscription. With my old app everything is ok. But with new app I have a problem - 80% of active trials do not convert to the paid version after 3 days ...
Dima's user avatar
  • 1,217
0 votes
1 answer
976 views

Ionic - Angular with Capacitor on Android : All app updates must use Billing Library version 4 or newer. in-app-purchase-2

Version used: "@awesome-cordova-plugins/in-app-purchase-2": "^5.46.0", Actions on Webstorm (ionic project) : ionic build npx cap sync npx cap open android Actions on Android ...
Simple Dev's user avatar
2 votes
0 answers
226 views

"Google Play store has stopped" and Billing service disconnected, before consuming a purchase

Recently my game started crashing while making a purchase. I've tried with billing library version 3 and 5. My targetSdkVersion is 32, billing version is 5.0.0, and play services version 4.3.14. I've ...
Henrik's user avatar
  • 349
0 votes
2 answers
2k views

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 ...
sits_1608's user avatar
0 votes
1 answer
428 views

Google in app purchase version 5 purchase verification issue

I'm unable to verify the purchase or particular item after being purchased from the google play billing version. Is there any way to get the verification of the item purchase from email, or from the ...
Ammar's user avatar
  • 942
2 votes
1 answer
1k views

Unable to get subscription price after updating play billing library to v5

I am unable to get subscription price after updating google play billing library from v4 to v5. Billing flow is working perfectly and I am also able to purchase the product. I was able to get prices ...
BhavitBJ's user avatar
5 votes
0 answers
287 views

Google Play Billing (v5): How to let the user upgrade from a subscription to an IAP

Lets say I have two products: subscription: auto-renewing yearly in-app purchase: non-consumable lifetime purchase Is there any way to upgrade from the subscription to the IAP without forcing the ...
kroegerama's user avatar
4 votes
2 answers
3k views

Issue with empty queryProductDetailsAsync

I have an issue retrieving product details, I have setup in my google play console this way: my google play config And I have done the following: myLog("MYAPP-TEST---1") val ...
Antoine Gallet's user avatar
2 votes
0 answers
450 views

How to check which offer a user is currently subscribed to in Play billing library v5.0 - Android

Currently, billingClient.queryPurchasesAsync returns a list of purchases which only has data like productId, purchaseToken, purchaseTime, etc. But I have a scenario where my app has 1 monthly base ...
Priya Sindkar's user avatar
0 votes
0 answers
208 views

Play Billing 5.0.0 Kotlin - How to override onProductDetailsResponse()?

please reference this doc. It states: "To handle the result of the asynchronous operation, you must also specify a listener which implements the ProductDetailsResponseListener interface. You can ...
Yanay Lehavi's user avatar
0 votes
0 answers
89 views

How to stop Google Play Billing from charging until an api request confirms the purchase can be made

I have a question about the Google Play Billing Library (version 5) but I guess older versions are fine too. In Google Play Billing, the purchase flow is launched like below: BillingResult ...
Mark's user avatar
  • 3,500
1 vote
0 answers
213 views

Why is the subscription not updating correctly, Android?

I have two subscriptions in the application, each of them individually works correctly. But when I try to do an Update/Downgrade, problems arise: I have two subscriptions in the application, each of ...
Binary's user avatar
  • 431
25 votes
4 answers
6k views

How to pass token of a one time purchase product to Google Play Billing Library 5?

How do you get token of PurchaseDetails object in Android? Based on the docs, https://developer.android.com/google/play/billing/integrate#java, to launch a purchase flow we need to do something like ...
Mark's user avatar
  • 3,500
3 votes
1 answer
2k views

Google Play Billing Library 5 purchase flow fails but response code indicates success

I'm trying to use the billing library 5 https://developer.android.com/google/play/billing/integrate#java, for in app purchases, however I'm encounter the error below when I try to make a purchase: ...
Mark's user avatar
  • 3,500
1 vote
2 answers
2k views

billing library 5 QueryPurchasesAsync always returns service disconnected

Migrating from Billing library 4.0 to 5.0, i am unable to check the purchase state. billingClient.queryPurchasesAsync(QueryPurchasesParams.newBuilder().setProductType(BillingClient.ProductType.INAPP)....
Vivek's user avatar
  • 115
7 votes
4 answers
3k views

How to get multiple product details from Google Play Billing 5?

How do you query a list of products from google play billing 5? From https://developer.android.com/google/play/billing/integrate#java, we query the details of a single product by passing the name of ...
Mark's user avatar
  • 3,500
6 votes
1 answer
2k views

BillingClient Purchase.getProducts() returns multiple identifiers

Previously, to get the product id, the getSku() method was used, which returned singular value. In the 4.0.0 version of the BillingClient library, the getSkus() method was added (https://developer....
AseN's user avatar
  • 180
0 votes
2 answers
438 views

Not able to activate a product id for in-app billing in my google play console

I have an application where i added in-app billing library and setup of code is done , i have uploaded my aab file to closed testing and the app has been reviewed and approved , when i create a ...
Taki's user avatar
  • 3,500
2 votes
1 answer
852 views

android Billing Library 5.0 - misunderstanding some features

Google has released Billing Library 5.0 with the new way to deal with subscriptions, but I had some misunderstanding while researching: Is it true that I really can't purchase another base plan or ...
MickSt's user avatar
  • 43
2 votes
1 answer
917 views

How to identify base plans & attached offers from the in-app-billing response?

I have created 2 base plans & attached 2 offers each. I have base Plans & offer IDs that are created at the play console. but those ids are not coming in queryProductDetailsAsync. Please find ...
VIISHRUT MAVANII's user avatar
7 votes
3 answers
2k views

Android - Billing 5.0.0 - Data structure explanation?

I'm confused about the new version (5) of android billing library. I have a few subscriptions in my app and each one has a monthly cycle and a 2 weeks free trial. Now I want to show to the users the ...
Anonymous's user avatar
  • 4,740
11 votes
3 answers
5k views

Google Play Billing v5 - Get a product's price

In v4, I used to have SkuDetails.price to get the price of the product but now it's not available anymore in the new ProductDetails in v5. How can I get the price of a product in this new version?
Jay N's user avatar
  • 398
7 votes
1 answer
2k views

How to get freeTrialPeriod of subscribtion from ProductDetails?

In Google Play Billing Library 5 there are ProductDetais instead of deprecated SkuDetails. SkuDetails had freeTrialPeriod field which returned free trial of subscribtion. In ProductDetails I can't ...
Vahan's user avatar
  • 3,146
0 votes
1 answer
133 views

ClassyTaxiServer with Server error: Cannot read property 'get' of undefined

I'm implementing the ClassyTaxiAppKotlin + ClassyTaxiServer project but without success. I followed all the steps in the tutorial. Apparently the ClassyTaxiAppKotlin android app is functional, ...
Itapox's user avatar
  • 651
1 vote
1 answer
748 views

Google Billing payment request inside TWA returning error Unable to download payment manifest "https://play.google.com/billing" on older Androids

I use Bubblewrap to turn my PWA into a TWA app on Android and have Google Billing properly enabled. Everything works fine on my Android 11 device, but when I open my app on devices that run Android 6, ...
Thomas's user avatar
  • 21
0 votes
1 answer
278 views

How to merge 3 old existing SKU into 1 new subscription in Play Console?

Before we had 3 different SKUs in Play Console for the app. But with Recent changes to subscriptions in Play Console and the Billing Library 5.0, the concept of SKU is considered deprecated. And the ...
Ksenia's user avatar
  • 3,613
1 vote
1 answer
3k views

Google play billing library 5.0 [duplicate]

I'm using google play billing library 5.0 for subscription and getting the error of onSkuDetailsResponse: -2 Client does not support ProductDetails. after successfully initializing the billing library....
Mohak Shah's user avatar
6 votes
1 answer
1k views

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 ...
aryal's user avatar
  • 61
12 votes
2 answers
7k views

Adding multiple products to productlist for queryProductDetailsAsync in android billing 5.0.0

In the old android billing implementation you would build an sku list to query products: List<String> skuList = new ArrayList<>(); skuList.add(SKU_POTION); skuList.add(...
Androidcoder's user avatar
  • 4,507
1 vote
1 answer
6k views

Google Play Billing Library 5.0 deprecation warnings

Since I've upgraded the BillingClient to version 5.0.0: googleImplementation 'com.android.billingclient:billing:5.0.0' I get these unique deprecation warnings: warning: [deprecation] getSkus() in ...
Martin Zeitler's user avatar
21 votes
1 answer
3k views

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 ...
jake n's user avatar
  • 431
1 vote
2 answers
1k views

Google Play Console Subscriptions Update

Since May 2022 Google has updated its billing system. And now we have multiple base plans and offers. It looks complicated and not so solid as it was before. Maybe it's more flexible, but a lot of ...
Ening's user avatar
  • 465
13 votes
6 answers
7k views

Android Google billing integration - Client does not support ProductDetails

On trying to migrate Google billing integration from version 4 to 5, I'm getting an error 'Client does not support ProductDetails' on calling queryProductDetailsAsync. List<...
Aldrin Joe Mathew's user avatar
13 votes
1 answer
2k views

How to find out if the user is eligible for Free Trial with Billing Library (in other words, he had not availed Free Trial before)?

How to find out if the user is eligible for Free Trial with Billing Library? In other words, how to find out that the user had not availed Free Trial before? I didn't find any API that would help to ...
Ksenia's user avatar
  • 3,613
3 votes
0 answers
926 views

Google Play Billing 5.0 relations between Products, Subscriptions and Base Plans

I have an app currently using Google Play Billing 4.0. I'd like to migrate from 4.0 to 5.0. Previously I had different subscriptions distinct by billing period (e.g.: monthly, weekly yearly). I ...
Abdullah Z Khan's user avatar
34 votes
3 answers
10k views

Getting the ProductDetails price in android-billing-5.0

I have upgraded my Kotlin app to android-billing 5.0 from 4.0, and as such, SkuDetails is now deprecated so I am migrating to using ProductDetails using the migration instructions. Previously I ...
Peter's user avatar
  • 2,744
0 votes
0 answers
463 views

(Google Play Billing Lib) - Timeout communicating with service when subscribing

I have my app published on internal, alpha, and beta. I'm trying to subscribe by calling billingClient!!.launchBillingFlow. But I'm getting: response code: -3, debug message: Timeout communicating ...
Mahmoud's user avatar
  • 2,793
2 votes
1 answer
517 views

Android Google Billing Library is not returning products

My app uses Google Billing Library and it worked fine with my debug builds. I was able to retrieve products and buy products with my licensed testers without having any issues. Then I released the ...
Tartar's user avatar
  • 5,344
5 votes
0 answers
1k views

How to get purchase history made with Google Play Billing?

I'm using Google Play Billing Library, v 4.0. Is there a way to retrieve all purchase orders (purchase history) for the currently logged-in account of the device? I've tried with ...
Lora Georgieva's user avatar
2 votes
1 answer
2k views

Google Play Billing Plan Upgrade/Downgrade with DEFERRED proration mode

In my Android application, we have multiple subscription plans, 1/2/3 months, which offer app features, for different durations, to users. User may switch between different plans during an active plan....
Ammar's user avatar
  • 1,821
2 votes
1 answer
296 views

I want to check if the item is purchased before, v4 In-App billing

I have a non-consumable one time item. I want to check if item is already purchased or not before launching the purchase flow. I tried lots of things but nothing worked. I searched about it but I ...
aarontsc's user avatar
0 votes
1 answer
382 views

Handling subscription canceling in my app from Google Play

Currently I use a separate backend to acknowledge purchases (Subscriptions & One-time products) made from Google Play. But when a user cancels a subscription from Google Play app, and leaves my ...
Ahmed Ashour's user avatar
0 votes
1 answer
842 views

Unable to connect to Google Play billing

I am trying to simple connect to Google play billing & access details such as the title & the pricing but I've been unable to do so. What I've done so far (step-by-step): (Added the IAP ...
Boron's user avatar
  • 109