Questions tagged [billingclient]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
7votes
1answer
2kviews

querySkuDetailsAsync is returning empty list with BillingResult code SERVICE_UNAVAILABLE

After upgrading the BillingClient to 3.0.0, I started getting about 20% users seeing SERVICE_UNAVAILABLE when querying for in-app purchase. The skuDetailsList is also empty. According to the docs, ...
user avatar
  • 2,902
3votes
1answer
906views

How to restore purchases on a second device (INAPP and SUBS)

I have the following situation: A user purchases a subscription on an app on his device A. Later on, he buys a device B and configures it with the same account of device A. He installs that same app ...
user avatar
3votes
1answer
138views

Billing Flow not launching

I've been at this for a week. I cannot get the billing flow to launch, please help!. Thanks. I'm not getting any errors. From what I can tell it is never hitting the "public void ...
user avatar
  • 105
3votes
1answer
694views

When to call BillingClient.endConnection()?

From Google doc, it mentions When you are done with this object, don't forget to call endConnection() to ensure proper cleanup. This object holds a binding to the in-app billing service and the ...
user avatar
3votes
1answer
1kviews

Android Google Billing Client - onSkuDetailsResponse Always Empty List

I was wondering could you help. I followed the instructions at https://developer.android.com/google/play/billing/integrate, but I cannot seem to get the purchase flow working. The billing seems to ...
user avatar
2votes
1answer
113views

Android - BillingClient returns empty purchases list

Some of my users tell me that my app forgets the purchased subscriptions every now and then. It works for 3-4 days and then it forgets them. This is a very important issue as users might suspect fraud....
user avatar
  • 3,904
1vote
1answer
1kviews

Android in-app purchase billing client crashes on build

I am new to Android in-app purchases. I have followed the official documentation and I can't go beyond building the BillingClient as app crashes when it tries to build the BillingClient. Any help or ...
user avatar
1vote
2answers
465views

Android - Context for BillingClient inside Fragment

I have a single activity application (java) and one of the fragments contains Subscription buttons. I'm setting up the Google Play Billing Library but when I set up the following: private ...
user avatar
  • 1,081
1vote
1answer
234views

Check SkuDetails subscription billing frequency

In Android development with Google Billing, how do I get the billing frequency for a Subscription SkuDetails.subscriptionPeriod() returns a date string. Is there a way to get the billing frequency ...
user avatar
  • 5,815
1vote
0answers
96views

Android Google Play Billing Testing

I want to test my backend server to make sure that I process the response from Google.Apis.AndroidPublisher.v3.purchases.products.get correctly. When launching the billing flow using a test account, I ...
user avatar
1vote
0answers
24views

billingClient.startConnection doesn't work

billingClient.startConnection doesn't run any listener. It worked fine a few hours ago.... Have anybody an experience this case?
user avatar
1vote
0answers
21views

When switching Layouts in Android-studio, how to go back if there was no layout when app started? Or how to un-set a new layout?

I‘ve developed a game in Love2d (Lua), and used love-android as the tool to make it run on android-studio. The game works perfectly in Android devices, so now I’m trying to add billingclient. My ...
user avatar
1vote
1answer
190views

Unexpected error when querying Google Play Developer API. Please check if you use a correct service account

I am implementing Android Billing client Library V 3.0 . In Billing Client v 3.0 you have to use backend server for subscription states handling. For that purpose you have to link your google cloud ...
user avatar
1vote
0answers
505views

Android Studio - BillingClient not supported error

I get this error in my log when running my app: W/BillingClient: In-app billing API version 3 is not supported on this device. I recently added in app purchase. Running in simulator. Any ideas why ...
user avatar
  • 21
0votes
0answers
77views

Android: UI code written inside Async functions not working in BillingClient version 4.0.0

Recently I upgraded to Android BillingClient version 4.0.0 from 3.0.2. I am facing 2 issues in Async functions. The UI code written inside Async functions like showing AlertDialog and disabling button ...
user avatar
0votes
1answer
36views

Android In-App Billing Library v4+ - "This item cannot be purchased" error

I used https://github.com/Mahadev-code/Android-inApp-Billing sample code (which is otherwise great, easy to use) in an app where the user can donate for me (technically purchase an item for $1). But i ...
user avatar
  • 1
0votes
1answer
34views

How can I show the products that the user has purchased in the billingclient library in Android?

I am using the com.android.billingclient:billing:3.0.1 library. How can I check if the user has purchased any product when the app is opened. So I want to check before the payment page opens. The ...
user avatar
0votes
0answers
25views

Xamarin.Android.Google.BillingClient 3.0 changes

I'm having problems moving from Xamarin.Android.Google.BillingClient V2 to V3. The Xamarin version seems to have diverged from the Android documentation, and I cannot find any information to tell me ...
user avatar
  • 11
0votes
1answer
45views

Why doesn't Android recognize "BillingClient"

I am following this guide. https://developer.android.com/google/play/billing/integrate my build.gradle looks like this: dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) ...
user avatar
0votes
1answer
212views

In BillingClient setup .setListener(this) references my calling activity instead of a PurchasesUpdatedListener

The docs show the following for setting up a Billingclient. private BillingClient billingClient; ... billingClient = BillingClient.newBuilder(activity).setListener(this).build(); In .setListener(...
user avatar
  • 3,701