All Questions
Tagged with in-app-billing play-billing-library
87
questions
0votes
0answers
15views
(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 ...
0votes
1answer
38views
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 ...
0votes
0answers
30views
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 ...
0votes
1answer
73views
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 ...
0votes
0answers
22views
Enable display apps overlay blocks GooglPlay billing
I am facing this issue when I enable Display app overlay and show a view as service, I mean showing a view all time like night shift layer or fancy animation, then if I went to any app to purchase ...
2votes
0answers
30views
Kotlin problem with billing library when no inapp purchase
when i wanted to release my app on google play store console, i got and error : "We've detected that this app uses an unsupported version of Play Billing. Please upgrade to Billing Library ...
0votes
1answer
54views
No callback from Play Billing Library 3 to confirm the purchase
We are implementing in-app purchase for Android using Java. I have added the required implementations and followed this guide: https://developer.android.com/google/play/billing/integrate.
I am however ...
2votes
2answers
110views
How to create non renewable subscription in Google play console
Currently, I have auto renewable subscription setup. But i want to create non renewable subscription in order to subscribe again at the end each billing period.
In google play console there is no ...
0votes
1answer
33views
All codes are not executing inside SkuDetailsResponseListener
I am trying to use IN-APP purchasing but I can't deal with querySkuDetailsAsync method. All code works well but inside SkuDetailsResponseListener only the first 2 line of codes are executing, namely ...
0votes
0answers
28views
Clarification regading the acknowledgement/consume response in google play billing (What is the difference between the acknowledgement/consumeRes)
In the google play billing library, I have used the consumeResponse.
The purchae list shows the acknowledgement value as false. So I have added the consumeResponse.
After adding the ...
0votes
0answers
37views
Query all purchases and available producs - Google Play Billing
I just wanted to ask if someone knows if there is a possiblity to load all available products from the Google Play Billing library. For all the methods you have to provide a specific SKU oder an array ...
2votes
1answer
185views
Why google play billing subscription instantly gets canceled?
I have integrated the google play billing library inside my application to make a subscription purchase. It works well. The user receives purchase confirmation mail from google.
confirmation mail from ...
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 ...
1vote
2answers
291views
Google in-app billing, a toast breaks everything
I don't even know what title this question should have.
So, I am working on a library to make Google-Billing as easy as possible to integrate.
Everything started after I've upgraded the library to ...
7votes
2answers
3kviews
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 ...
4votes
0answers
72views
Android Billing API V3 Subscription is not renewing automatically
I am integrating the billing v3 subscription for my app, and billing client showing as This subscription will not automatically renew. I need it should be renew automatically.
7votes
3answers
1kviews
Cannot upgrade android in-app subscription. Error: "Something went wrong on our end. Please try again."
Issue:
Cannot upgrade current subscription to different subscription.
Showing Error: "Something went wrong on our end. Please try again."
Description:
Were using play billing library v3.0....
0votes
0answers
370views
Google Play Billing Library 3.0.3 and 4.0.0 does not work with Gsuite accounts
I am using Google Play Billing Library 3.0.3 and 4.0.0.
On GSuite accounts, the BillingClient.startConnection() allways get the error message:
"Google Play In-app Billing API version is less than ...
4votes
0answers
168views
Google Play library 3.0 check if user used introductory price
I am using Google Play Billing library 3.0.3 with Java.
I have an introductory price on my subscriptions.
When the user already have used the introductory price, the getIntroductoryPrice() function ...
1vote
1answer
490views
How to pass a user ID with the Google Play Billing Library?
The documentation reads:
Starting on August 2, 2021, all new apps must use Billing Library version 3 or newer. By November 1, 2021, all updates to existing apps must use Billing Library version 3 or ...
3votes
1answer
374views
In app billing v3 - why I get DEVELOPER_ERROR when calling queryPurchases(skuID)?
I implemented inapp billing (subscriptions) and everything works properly - I am able to subscribe, I acknowledge subscription, and billing flow ends succesfully with OK status.
However, at start of ...
1vote
1answer
49views
Same In-App product shared among multiple apps (Android)
Is it possible to have the same in-app product(managed) in multiple apps? Such that if a user buys a premium upgrade in one of the apps, he gets premium upgrade in all of them.
Note that I'm not ...
2votes
1answer
193views
Android Billing Library v3 - Account in License Testing, Item stuck at Purchased
After searching StackOverflow here, I seem to be having something that none of the suggested fixes work (except for one, mentioned below).
I am NOT using the test SKUs (android.test.*), but made my ...
4votes
1answer
882views
android billing querySkuDetailsAsync always returns 0 skuDetails
I'm trying to enable in-app purchases, and can't figure out why my skuDetails query always returns 0 items.
I have publicized the app to my internal testing and added my mail address to the license ...
4votes
0answers
617views
Android Billing Client causes memory leak
Simple MainActivity for a new project
public class MainActivity extends AppCompatActivity {
BillingClient billingClient;
PurchasesUpdatedListener purchasesUpdatedListener = new ...
0votes
1answer
87views
Inapp purchase discount using template
For Android in app purchasing module...
I am following guidelines as given on Official Page
I wish to present 4-5 non-consumable digital goods within my app.
So for each digital product I have created ...
0votes
0answers
356views
Android - In app subscription doesn't auto renew
I am using the billingclient in version 3.0.1 to manage some subscriptions (monthly, bi-annually and annually).
com.android.billingclient:billing-ktx:3.0.1
So far it's working great, user can ...
1vote
1answer
91views
On with scenario onBillingServiceDisconnected is called?
does the onBillingServiceDisconnected will be call right after the BillingClient.startConnection if something went wrong? or say differently does BillingClient.startConnection, in case of error, will ...
4votes
0answers
245views
How to test pending purchase?
I've just updated my app to use the latest play-billing billing (2.0) release, which forces you to support pending transactions or the libraries initialization fails fast. In the release notes for ...
1vote
1answer
185views
Development package name different from the PROD package name
I have my PROD app installed on my android phone with the package name "com.mycompany.app". however to develop and test my app I use the package name "com.mycompany.debugapp". in ...
0votes
1answer
94views
Get same Google Billing SKU's for alterantive app package names
In our app we have 2 app naming schemas: com.my.app for release builds, and com.my.app.debug, for, well, debugging.
This is setup this way, so we can separate analytics on Firebase - so debug crashes ...
0votes
1answer
113views
Google Play payments are refunded after 72 hours
I'm working on a new android project and I want to add in-app purchases to my app. When I add the codes, the purchases are returned to the user after 72 hours. I guess I'm skipping something.
Here's ...
1vote
1answer
242views
params.setSkusList(list) doesn't work when list contains more than one sku productId
Following code doesn't work
List<String> test = new ArrayList<>();
test.add("product_1");
test.add("product_2");
...
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 ...
0votes
1answer
154views
Where do I find BILLING_RESULT_OK for Google Play Billing isFeatureSupported call?
The google play developer documentation for in-app-purchase subscriptions states
Before your app enters the billing flow, you can call isFeatureSupported() to determine whether the device supports ...
1vote
0answers
33views
What's the difference between "Restorations" and "Resubscribing" in android subscription?
I'm implementing Android new subscription feature in my application.
I have checked the docs. But I don't understand the difference between Restorations and Resubscribing before the subscription has ...
0votes
2answers
109views
Play Billing Library: What if app fails to give entitlement?
I'm learning Google Play Billing Library to use in my Android App. I sell coin in my app as consumables product.
The flow is: user buy the item, app consume the item, if consume success increment the ...
1vote
1answer
822views
setDeveloperPayload is Deprecated , any Alternative way for that?
setDeveloperPayload is Deprecated in Billing Library 2.2.0
and in Latest release of Billing Library It was Removed this Method in 3.0.0
I am using this method from AcknowledgePurchaseParams
...
4votes
1answer
2kviews
Open this app to confirm your subscription before Jun 23, 2020
Open this app to confirm your subscription before Jun 23, 2020. What is causing this?
2votes
1answer
1kviews
Google Play Billing test card still shows up after production
I have an app with in-app purchases which i used to test with the provided test card methods by google as shown here Google Play Billing Test
However, after i published my app in production on Google ...
4votes
1answer
3kviews
Android Google Pay Billing - Response 4 : ITEM_UNAVAILABLE
I am trying to integrate Google Play Billing.
Here is my onCreate :
private final static String TAG = "MainActivity" ;
private final static String ITEM_SKU_SUBSCRIBE = "sub_example" ;
...
2votes
1answer
402views
Does queryPurchases() from Play Billing Library guarantees retrieving a valid purchase?
I'm using the Google Play Billing Library and I read the documentation and all questions about validating the purchases on the server and how to inquiry the purchases.
However, some points are still ...
0votes
1answer
253views
Play Billing - Implement In-app purchase to unlock content and remove ads
I have a game in which you play 1v1 against friends answering questions. Currently there are 5 sets of questions monetised by admob. I plan to add another 10 sets and the option of forfeits, which ...
0votes
0answers
537views
Consuming purchase results in a null object reference
Billing flow launches successfully, and I receive the purchase receipt email.
However the fatal error occurs when client.consumeAsync(consumeParams,consumeResponseListener); is called.
This is ...
3votes
0answers
115views
Refunded non-consumable purchase still in the list Google Play Billing Library 2.1.0
I use queryPurchases() to query as said in android dev.
Process:
Success purchase
Grant entitlement to the user
Acknowledge it
Refund using the the google dev console
I can still query the ...
6votes
1answer
495views
android ANR BillingClient.queryPurchases
I am using Google billing service, version 2.0.3.
Running the BillingClient.queryPurchases method in the UI thread in the activity onstart method, users sometimes encounter Application Not Responding ...
0votes
1answer
1kviews
onPurchasesUpdated not called for pending purchase success
I have updated my application to use v2.1.0 (from an earlier 2.0.1 release) of the android play billing library and I am no longer receiving purchase updates on completion of a pending purchase.
I ...
0votes
0answers
212views
Where to find the latest up-to-date document for Google Play Billing Library?
The official guide for Google Play Billing Library is obsolete as today (2019-12-11). Many APIs mentioned in the document are no longer available.
For example, the following sample code no longer ...
3votes
1answer
1kviews
Why not signing in causes error "Google Play in-app billing API version is less than 3"
When Google Play has not been signed in, running BillingClient.startConnection() results in BillingResult returned by onBillingSetupFinished() showing billingResult.getDebugMessage():
Google Play ...
4votes
1answer
639views
querySkuDetailsAsync callback never called
I think to have followed all the steps correctly from the documentation but I can't reach the callback of querySkuDetailsAsync, no errors reported. The app is working correctly with IAB, now I'm only ...