Questions tagged [android-billing]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 views

What is the renew behavior on deactivated base plan in Android app auto-renew subscription?

In Google's document (actually, it is Play Console Help though), it is said that: Deactivate or reactivate a base plan You can deactivate a base plan to prevent new purchases. It does not affect any ...
Toru's user avatar
  • 599
0 votes
1 answer
28 views

Android store test subscription cancellation

I am trying to teat a yearly subscription, I added my email to tester, I subscribed with "test card, always approved" and I received emails saying renewal happened, like it is here: https://...
barii's user avatar
  • 343
0 votes
1 answer
47 views

Android Studio Java - In app purchase bugs/issue

In my app I am adding In App Purchase using this library. This is what my activity code looks like: public class InfoController extends AppCompatActivity { private static final String PREFS_NAME =...
Alexandra Nicole's user avatar
0 votes
0 answers
16 views

Android Billing. How to purchase multiple quantity of multiple items?

Do we have the possibility to purchase multiple different items with different quantity within a single purchase? Sample: item_sku_0 item_sku_1 item_sku_2 The user selects item_sku_0 : qty: 3 ...
Alexandr's user avatar
  • 210
0 votes
1 answer
27 views

Android Billing : How to cancel Purchase if ConsumeParams failed

On an active and stable internet network, the purchasing process does not have any obstacles, but when a purchase is made on an unstable and super slow internet network (possibly disconnected, lost ...
Espada's user avatar
  • 201
0 votes
0 answers
24 views

Problems with subscription implementation | deprecated codes

let's see if I explain myself correctly, I am trying to implement subscriptions in an application on android studio for the first time, the structure is this: splash.java -> SubscriptionActivity....
jesus vallad's user avatar
0 votes
1 answer
100 views

Android Studio - In App Purchase: billingclient problem

A few years ago I made a app for Android, but the project was deleted by a mistake. After now a few more years I decided to write it again. So I have came to the part where I want to add in app ...
Saland's user avatar
  • 15
0 votes
0 answers
13 views

Google Play Billing queryPurchasesAsync returns empty subscriptions list while there is an active subscription

The Google Play Billing Library is returning an empty list of subscriptions when querying through the queryPurchasesAsync method while in fact there is an active subscription. From the documentation ...
Jorn Rigter's user avatar
1 vote
1 answer
84 views

A member variable set before billingClient.launchBillingFlow is lost when PurchasesUpdatedListener callback is triggered

I'm initializing a member variable to null. Later in the process, this member variable is assigned a value, before starting the payment flow, ie before invoking billingClient.launchBillingFlow(context,...
fpierrat's user avatar
  • 785
0 votes
1 answer
14 views

When to use billingclient:billing in android app?

My Android app doesn't have any subscription or in app purchase, do I need to use billingclient library in my app? Is it mandatory to use it?
BalasubramaniG's user avatar
0 votes
1 answer
46 views

Why Google Billing API does not provide purchase details which triggered using promo code in android?

Why Google does this? Currently, the com.android.billingclient.api.Purchase object obtained through the Google Billing API does not include specific details about whether a purchase was made using a ...
Mubarak's user avatar
  • 1,429
0 votes
1 answer
76 views

Unable to access sku in queryProductDetailsAsync with Google Billing Library 6

I am working on migrating my project from Google Billing Library 4 to use Google Billing Library 6. In my querySkuDetails() method, I can't access the sku (string) from queryProductDetailsAsync Here's ...
Joe's user avatar
  • 3,834
0 votes
1 answer
93 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 ...
Chris's user avatar
  • 1,250
1 vote
1 answer
82 views

Android Kotlin - Billing - get productId from In-App purchase

I'm trying to get the productId from a purchase: private fun queryPurchases(purchases: List<Purchase>){ for (purchase in purchases) { Log.d("pikaboo", purchase.toString())...
Eduard Unruh's user avatar
  • 1,073
0 votes
1 answer
79 views

Android billing 6 enter in initiatePurchase function and do nothing after it

I'm new using Android billing. I'm implementing an activity with 4 consumable shopping options. So I have 4 buttons. When user clicks on any of them, the toast initiatedPurchase(productId: String) ...
RGS's user avatar
  • 4,123
1 vote
1 answer
75 views

Android Kotlin - Billing subscriptions - purpose of consumeAsync?

I've followed a tutorial about implementing subscriptions with Google Billing, but I've left out some methods but it seems to work just fine. This is one of the methods I left out: private fun ...
Eduard Unruh's user avatar
  • 1,073
0 votes
0 answers
31 views

Android kotlin Billing - ITEM_ALREADY_OWNED condition not executed

I have the latest billing version 6.0.1 This is the function to get the item prices: private fun getPriceSingle(productId: String, priceText: TextView){ val queryProductDetailsParams = ...
Eduard Unruh's user avatar
  • 1,073
0 votes
1 answer
117 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 ...
Easy AI's user avatar
0 votes
1 answer
225 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 ...
Dilazak's user avatar
  • 139
0 votes
1 answer
207 views

BillingClient is not connecting to Play Services using 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 ...
Dilazak's user avatar
  • 139
0 votes
1 answer
41 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 ...
hidd's user avatar
  • 335
0 votes
1 answer
438 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 ...
EmLeons's user avatar
  • 11
0 votes
0 answers
16 views

Google Play Store Payments: Why Does Google Send Duplicate Notifications For SUBSCRIPTION_RENEWAL Payments?

I received these 7 notifications 5 seconds apart from each other. Each orderId contains a suffixed "..X" where X increments with the number of notifications. The acknowledgementState is also ...
MrChadMWood's user avatar
0 votes
0 answers
16 views

Is there a version of 'inapproducts.list' that can be called from my app on the phone?

The Google Play Store back end has a call to retrieve all products for an app. https://developers.google.com/android-publisher/api-ref/rest/v3/inappproducts/list Is there a way to do this from my ...
Bungles's user avatar
  • 2,051
1 vote
1 answer
470 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 = ...
Vlad Bulan's user avatar
0 votes
0 answers
87 views

Error when trying to implement Billing Client into my app

I'm delving into the world of Android app development, and I'm trying to implement Billing Client in my app, but I'm facing an issue. I'm following the steps from the documentation provided by Android ...
Unknown_Soldier's user avatar
0 votes
1 answer
59 views

How to call BillingClient::queryProductDetails in Kotlin without knowing any product IDs?

I would like to use the Play Store BillingClient to get a list of all products for sale for my app and I don't want to have to hard-code my product list on the client because the IDs on the client and ...
Bungles's user avatar
  • 2,051
0 votes
0 answers
84 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 ...
Raul Espim's user avatar
2 votes
2 answers
171 views

Android Play Store Subscription Billing doesn't trigger any action

I have successfully implemented the in-app purchase flow, now I am trying to switch to the subscription model but something is wrong in the makePurchase() method, it doesn't open the window for the ...
stavros.3p's user avatar
  • 2,264
1 vote
0 answers
187 views

Handling Subscription Plan Selection in Google Play for a PWA App

I have the PWA app installed via the GooglePlay store. I use the following code in the app to create a subscription. const paymentMethodData = [ { supportedMethods: '...
Petr Hudík's user avatar
0 votes
0 answers
56 views

Android app Google Play Billing: onConsumeResponse: 0 ,how to overcome?

Problem statement: In my app using Google Play Billing V5.2.0, the billing screen showed "Purchase successful" message after clicking buy-button for consumable product. However, my codes did ...
LuciferRules's user avatar
1 vote
1 answer
103 views

Google Play Billing Library - Hot to check consumption status?

I am updating an older Android app to the latest Google Play Billing Library. To handle consumable products the docs say: Make sure the purchase wasn't already consumed by checking the ...
Andrei Herford's user avatar
0 votes
0 answers
45 views

How far is Google Play Billing Library a replacement for Application Licensing (LVL)

I just tried to add "licensing" to my app. I first found "lvl_library", which is supposed to offer license handling - so users can pay for an app. Now my app in reality isnt a &...
MatthiasL's user avatar
0 votes
0 answers
26 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 ...
Дмитрий Сахно's user avatar
1 vote
0 answers
321 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 ...
Checkmate's user avatar
1 vote
1 answer
348 views

Expiration notification received a second time after an android subscription purchase

I have a strange behavior with SubscriptionNotification, when we purchase a subscription and cancel it we get in total 4 notifications : the first one for the purchase (received at 08:11:40) { &...
Yrtiop's user avatar
  • 51
2 votes
1 answer
203 views

ConsumeResponseListener always reports SERVICE_DISCONNECTED for pending purchases

I'm using google IAP billing library 5, and after more or less directly copying the code from developer.android.com I'm getting a SERVICE_DISCONNECTED error whenever I try to consume a INAPP purchase ...
Al Ro's user avatar
  • 496
6 votes
3 answers
1k views

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 ...
Waseem's user avatar
  • 469
0 votes
1 answer
163 views

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 ...
Markers's user avatar
  • 328
0 votes
0 answers
47 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 ...
MickSt's user avatar
  • 43
0 votes
0 answers
297 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. ...
Ksenia's user avatar
  • 3,503
1 vote
1 answer
439 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....
Anonymous's user avatar
  • 4,570
0 votes
1 answer
498 views

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 ...
MohammedIsmael's user avatar
0 votes
0 answers
82 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....
Muratcan Yıldız's user avatar
1 vote
0 answers
46 views

Test billing products

In the past we could test the in app purchase with static skus like following: android.test.purchased android.test.canceled android.test.refunded android.test.item_unavailable This did work without ...
prom85's user avatar
  • 17.1k
0 votes
0 answers
246 views

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 ...
Dessy's user avatar
  • 11
0 votes
1 answer
98 views

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 ...
Adam Loyd's user avatar
2 votes
1 answer
148 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
  • 83
2 votes
0 answers
40 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
  • 728
1 vote
1 answer
236 views

Issue on BillingClient.queryProductDetailsAsyn when call adapter.notifyDataSetChanged()

When I do adapter.notifyDataSetChanged() into onProductDetailsResponse it seems that the callback stays pending and the Recycleview doesn't show anything I'm upgrading the Google Play Billing Library ...
Enrico Ancis's user avatar

1
2 3 4 5
10