Questions tagged [play-billing-library]
Anything specific to Google Play Billing library
261
questions
0
votes
1
answer
36
views
Billing library 6.0 error "user not eligible" on upgrade
I have setup two subscriptions each one having one baseplan, like this
SubsA -> Monthly baseplan A
SubsB -> Yearly baseplan B
I can successfully purchase each of them. So my test setup seems ...
0
votes
0
answers
90
views
Google Play Billing 6.0.0 queryPurchasesAsync
When I used the below code I got Server Disconnected error message
mBillingClient.queryPurchasesAsync(QueryPurchasesParams.newBuilder().setProductType(BillingClient.ProductType.INAPP).build(), new ...
0
votes
1
answer
77
views
queryProductDetailsAsync returns empty list in production version (Google Play Billing)
I'm facing an issue, queryProductDetailsAsync returns empty list in production version, But it's working well for internal testers.
I published the app and it was approved yesterday. Also the app is ...
0
votes
1
answer
98
views
How to query old (one time) purchased items with play billing libray v6.0.1
I am migrating from In-App Billing v3 to Play Billing Library v6.0.1. I am stucked at a point where I need to query and confirm old (one time) purchases with play billing library v6.0.1. With in-app ...
0
votes
0
answers
94
views
BillingClient is not connecting to Play Srevices usinng v6.0.1
I am implementing in app services using in app billing library v6.0.1 Strangely the Billing Client is not connecting to play services.
I have tested the following code in both release and debug ...
0
votes
1
answer
34
views
Is it possible to get currency values returned by SkuDetails.getPrice()?
I'm using localizedPriceString of Unity that actually calls SkuDetails.getPrice() of Android API. For correct displaying symbols of any currency would be great to know list of values can be returned ...
0
votes
1
answer
190
views
Replacement for SkuDetailsParams in Billing 6.0.1
I recently updated my Android app to use Billing Library version 6.0.1, and I noticed that SkuDetailsParams class is deprecated. I'm trying to find the new replacement or alternative for ...
1
vote
1
answer
111
views
Consistent Google Play Billing error in TWA: clientAppUnavailable (Android 13, API 33 and above)
We recently released our TWA (our app) to customers and on day 1 are experiencing a very consistent issue with Google Play Billing. When we try to call getDetails() on a SKU as well as when we call ...
0
votes
0
answers
88
views
play billing v6 registering subscription purchase under wrong user
When attempting to purchase a subscription on a device with multiple accounts, the purchase is being registered in an account other than the active one in the Play Store app. Despite recognizing the ...
0
votes
0
answers
22
views
Google play Billing Sdk
I am currently experiencing an issue with the integration of the Google Play Billing SDK. My application has already integrated Google Play, but I have encountered a problem. When a user's Play Store ...
0
votes
1
answer
165
views
Google Billing crash my app because change screen mode to portrate
I have standard billing client with clear architecture, my billing clieant does not know about activity. I Send to billing client activity like a param on his method no more.
My app has screen mode = ...
0
votes
0
answers
367
views
User specific "Something went wrong on our end. Please try again"
This is extremely frustrating as we have clients that are raging that they are losing sales and we don't have a definite answer. Google really needs to do better with their messaging.
Our app has in-...
0
votes
0
answers
54
views
Error: "Please provide a valid listener for purchases updates" Google Play Billing Library android
I'm implementing in my app the purchase of a subscription for the user through the Google Play Billing Library.
The problem is that I need to access the same BillingClient instance in two different ...
0
votes
0
answers
25
views
The purchase window is no longer prompted
I renewed
was
gradle plugin 4.0.1
gradle version 6.1.1
became
gradle plugin 7.1.1
gradle version 7.2
and the shopping window no longer shows .If return back will work.
What can be wrong?
(The most ...
1
vote
0
answers
223
views
Implement Android Billing Introductory Offer in Kotlin
I am looking to add an introductory offer or free-trial to my google play subscription.
I am using the new version of the billing library (5.0), however I cannot see the details of the subscription ...
0
votes
2
answers
113
views
Play Billing - Not showing deactivated product
I deactivated an in-app product on play console but it still shows up when I do billingClient.queryProductDetails. Seems like the only way is to delete the in-app product but then you can't use the ...
1
vote
0
answers
189
views
How to request a purchase Android billing: 5.1.0 [closed]
I'm upgrading from version 3 to version 5. I don't understand how to request a purchase.
The request was made like this:
public void one(View view){
Vibro = (Vibrator)this.getSystemService(...
0
votes
0
answers
110
views
Android Billing/Google Play issue, Cannot test in-app Subscription on most Google accounts except one
I have an Android app where I have implemented the latest billing client 5.1.0. The app used to be published in production for free but is currently unpublished. I have published the app to an ...
0
votes
0
answers
22
views
How do I find what my customer paid for one of my subscriptions in the Google Play Store?
In the previous (ie V1) version of the Google billing app, the Developer Network API gave me the price paid for a subscription purchased. V2 doesn't do that.
It looks like, once I receive the ...
0
votes
0
answers
35
views
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 ...
0
votes
1
answer
86
views
Google Play Billing v5 - List all Available Products
Is there a way to list all available products using Play Billing v5?
Every implementation I've seen you need to provide the product ID, and I don't have a backend to keep track of these IDs and I don'...
1
vote
1
answer
777
views
Manage subscription free trials with Google Play Billing Library from Android Studio
I've been managing Google Play subscriptions from my Android app for a long time, using Google Play Billing Library version 4.0 since last year (it's not feasible to upgrade to 5.0 at this moment). ...
0
votes
0
answers
101
views
Google Billing Library 5.0 - Can't get ProductDetails discounted offer ID
implementing Google Billing Library 5.0. While I can get from productDetails list the base plan id and relative attributes (formatted pricing etc), I am not able to get the offer id of the promotion ...
0
votes
0
answers
48
views
Play Billing: Change between plans with free trials of different duration
In an Android app I offer a subscription with base plans of different billing periods, say monthly and yearly. I offer a free trial of 1 week for the monthly plan, and a free trial of 2 weeks for the ...
0
votes
0
answers
250
views
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.
...
1
vote
1
answer
336
views
Android Billing - How to get subscription duration from Purchase object
I am using version 5 of billing library. I have a subscription with product id "MySub" that has two offers. One monthly and one yearly with offer ids "sum.monthly" and "sub....
0
votes
0
answers
79
views
How to buy subscription for different app user on same device with single google account using google play billing library v5.1.0?
I have implemented subscription using google play billing library v5.1.0. I am facing issue in handling the following scenario:
User [email protected] login into app and buy subscription for product &...
5
votes
1
answer
738
views
Migrating to Google Play Billing Library Version 5.1.0 - SkuDetails.getOriginalJson() equivalent
I am upgrading from Google Play Billing version 4.0.0 to version 5.1.0.
In version 4 SkuDetails has the function getOriginalJson() that contains a json object that I send to my back end. I dug in the ...
1
vote
0
answers
49
views
Which ProductDetail to use to Launch Purchase Flow in PlayBilling v5
I have four subscription products
Monthly subscription (Auto Renew) with Trial Offer
Monthly subscription (Prepaid)
Yearly subscription (Auto Renew) with Trial Offer
Yearly subscription (Prepaid)
...
0
votes
0
answers
79
views
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....
4
votes
0
answers
328
views
android.test.purchased displays as a white dialog with not buy or cancel button just name and price
During the purchase flow, with ID: android.text.purchased, a plain white dialog box is displayed with only Sample Title and US$.99 at the top. No other buttons are present, e.g. no buy button.
I tried ...
0
votes
1
answer
385
views
Check if the user has bought subscription in android java
How do I write a function that checks whether a user has bought a subscription or not whenever my App opens?
These function only tells that the user successfully bought the subscription or cancel the ...
0
votes
1
answer
232
views
Purchase cache validity for Google Play Billing Library 5
Does anyone know or know to find out how long a Google Play cache keeps returning purchases if there is no internet? The method call is:
mBillingClient.queryPurchasesAsync(SkuType.INAPP, ...
1
vote
1
answer
589
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 ...
2
votes
1
answer
700
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 ...
2
votes
1
answer
120
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....
2
votes
0
answers
37
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 ...
0
votes
1
answer
80
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 (...
0
votes
0
answers
270
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 ...
1
vote
1
answer
482
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 ...
0
votes
0
answers
41
views
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 ...
3
votes
0
answers
120
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 ...
0
votes
1
answer
798
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 ...
2
votes
0
answers
174
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 ...
0
votes
0
answers
144
views
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....
0
votes
2
answers
978
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 ...
0
votes
1
answer
370
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 ...
2
votes
1
answer
791
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 ...
0
votes
0
answers
93
views
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 ...
0
votes
0
answers
62
views
How to get user payments and susbcriptions status from the google play
How I can get status of current subscriptions and user payments from the google play, with google play API or other method?
I just need a list for activate subscriptions and status.
Also I know that ...