All Questions
Tagged with in-app-billing java
204
questions
0votes
0answers
19views
Check if a subscription has been purchased android
How can I check if a user purchased a subscription on Google Play Billing ? I tried to test on a test subscription "android.test.purchased" with this code :
val purchasesResult = ...
0votes
0answers
20views
Purchasing multiple items/multi quantity of item in one transaction with android billing library
According to the documentation of Android billing library v4.0+, google has added the ability to purchase multi-quantity of an item.
I enabled the option in Play Console:
https://i.stack.imgur.com/...
0votes
1answer
36views
onPurchasesUpdated called multiple times
I have set up in-app billing on an Android app (java). When I call launchBillingFlow on the BillingClient:
BillingFlowParams billingFlowParams = BillingFlowParams.newBuilder()
....
0votes
0answers
31views
In-App Purchase: purchases.subscriptions.get returns developerPayload key data null sometimes
When verify user's subscription using purchases.subscriptions.get Api , it sometimes returns 'developerPayload' key data null or empty String , Why I am getting null or empty string?can you please ...
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 ...
1vote
0answers
94views
Google Billing Library v4 Check if the item was purchased
I want every time I start the application check if a premium user has bought.
I do not have a server and I want to perform all actions in the client.
I write the value whether there is a premium in a ...
-1votes
1answer
32views
loadOwnedPurchasesFromGoogle() not loading Products or history
I am trying to use the method BillingProcessor method
bps = BillingProcessor.newBillingProcessor(this,getResources().getString(R.string.play_console_license), this);
bps.loadOwnedPurchasesFromGoogle();...
0votes
2answers
270views
Android Google Play Billing - querySkuDetailsAsync resurning empty list
I have an Android project where I want to use com.android.billingclient.api version 4.0.0, which would replace an old billing library that google doesn't allow any more (com.anjlab.android.iab.v3). I'...
0votes
0answers
19views
Confirm subscriptions error in Google purchase library
I sell subscriptions and products in my mobile application with google billing. I make changes to user account with firebase when a product is sold. I've noticed that 20% of my users are disapproved ...
0votes
0answers
46views
The product is not available for purchase google play
I'm using BillingClient to put products in my app that's already published in the play store, but when I go to test the purchase process on my test device, I always get this error:
Here
The error is ...
0votes
2answers
152views
How to fix in app purchase for android app?
I have an application live in google play store and have some problems when add billing 3V to handle subscriptions.
Any new subscribers can’t access in my application after payment and the payment ...
0votes
1answer
91views
How to add in-app billing for subscriptions in android using java
I'm new to in-app billing and payments with google on android,
can please someone explain to me how to implement the in-app billing in android ?
And how to add the server part for verification? (using ...
1vote
3answers
138views
Google InApp Billing - Binding title of skuDetailsList obtained from onSkuDetailsResponse to List View Control
I am new to the implementation of Google's Billing library and using this system to make subscriptions inside my app. I am trying to get the title of skuDetailsList which is obtained from ...
4votes
1answer
497views
Google Billing Library - Check for Subscription free trial eligibility
I'm new to the implementation of Google's Billing library and using this system to make subscriptions inside my app. My question is if a user created a subscription which has free trial, used it ...
0votes
1answer
32views
I have a question about Google Purchase Library
I am using billingclient:billing:4.0.0. When a subscription or a product is sold, I want to register it. So for example,
sub_1
sub_2
sub_3
Let's say I have a product, when my user buys sub_2, I want ...
1vote
0answers
24views
Subscription payment window does not launch when trying to buy a subscription
I am using the below library.
In-app products work fine in this library, but when I click on subscriptions, nothing happens. What do you think is the problem?
Lib : https://github.com/android/play-...
1vote
1answer
87views
Android Billing Subscription will not automatically renew
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.
-1votes
3answers
704views
Android Studio: In-App-Billing v4 - How do you correctly iterate over skuDetails?
My app is a test app....
When I call my function to get shop item info, I actually get a skuDetails return of...
[SkuDetails: {"productId":"extra_lives","type":"...
0votes
1answer
70views
Android: How to implement a variable subscription start date Google in App subscriptions
I am implementing a subscription in my app. All my users get 30days trial by default handled by my own scripts. I am trying to implement Google IAP for my app and basically want the Subscription to ...
2votes
2answers
234views
Using BillingDataSource.java of Android example
I am trying to use
BillingDataSource.java
Security.java
from
TrivialDriveSample
I managed to get the purchase for a Premium SKU (one time purchase)
but where can I check if this product is bought ...
0votes
0answers
53views
Making Google Direct Carrier Billing (DCB) the default payment method
This may be a stupid question but, I have noticed that many of my users struggle trusting card payments on apps and very few understand you can select Mobile Billing in the Google billing section. So ...
0votes
1answer
82views
Android Studio: In-App Billing - Why is the item detail call returning an empty list?
Using in-app-billing v4.0 (per google instructions)
I uploaded a test app to my console and created a closed tester release. You have to upload a .aab in order to create items.
So I created two items ...
35votes
3answers
9kviews
android billing:4.0.0 - queryPurchases(INAPP) and purchase.getSku()
I refresh to android billing version 4 and 2 things are not working anymore.
First I have this:
else if (billingResult.getResponseCode() == BillingClient.BillingResponseCode.ITEM_ALREADY_OWNED) {
...
0votes
1answer
143views
Getting multiple subscriptions with Android In-App Billing v3
Library : https://github.com/anjlab/android-inapp-billing-v3
I am using the Android In-App Billing v3 library and would like to sell one product more than once. If the subscription is purchased, I ...
0votes
3answers
410views
Java - app crash when using in app purchase
So I have experienced some issue with in app purchase in my app.
I have started working on an old (8 months old) project I had earlier, but I am having some issue with app purchase. The app is already ...
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 ...
0votes
0answers
54views
Testing google subscription in android app not working
That is the error I am getting in log. I don't know what it means I have everytihng up to date. I am using Redmi Note 8 as testing device.
I have permission in manifest set as ""
I was ...
1vote
1answer
2kviews
Google Play In App Purchasing Issue - Error You Already Own This Item
In app purchases on my app have worked fine for 2 years, and I think they are still working okay in Google Play with actual purchases. But recently when using promotion codes, or internal/beta testing,...
1vote
2answers
528views
Google Play subscriptions: interference between 'Account Hold' and 'Grace Period'
All developers received emails from Google saying that apps using subscriptions should manage the 'Account Hold' status from November 1st, 2020. See for example here.
So, I am trying to check that my ...
5votes
1answer
460views
What should you put in `onBillingServiceDisconnected()`?
Here is the method I've got:
public void setupBillingClient() { //connect to google play
billingClient = BillingClient.newBuilder(context)
.enablePendingPurchases()
...
2votes
2answers
2kviews
How do you check if a user has bought an in-app purchase whenever he open the app?
Note: I'm talking about a one-time purchase that removes ads from the app.
Google says you should call BillingClient.queryPurchases() in your onResume() and onCreate() but I'm not sure how to do that.
...
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 ...
8votes
1answer
1kviews
November 1st 2020 / 'Account Hold' : is it mandatory to display an explanatory message to 'Account Hold' users? [closed]
It is mentioned here that a proper management of the 'Account Hold' status is required by November 1st, 2020.
The doc says here : "When a user enters into account hold, you should leverage Real-...
0votes
2answers
333views
Multiple in-app products in android app that has implemented Firebase Realtime Database storage
I've got an app that shows users a recycler view with images coming from Firebase Realtime database. When a user clicks on the image they want it takes them to a page with a purchase button and their ...
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, ...
2votes
1answer
274views
Why Android IAP initializing but not working?
I am using this library to implement in app purchase in my app.
https://github.com/anjlab/android-inapp-billing-v3
I added this code to my gradle.
repositories {
mavenCentral()
}
dependencies {
...
0votes
1answer
150views
onPurchasesUpdated method can't be overridden in Java for Android app
I'm trying to write a Java for Android app using In-App Billing. I'm using this link as a guide. I've added the code they prescribe under Initialize a Billing Client, but I'm getting a message that ...
0votes
1answer
187views
How to purchase each item in recyclerview with in-app purchase
I am trying to add in-app purchase for my app.The problem is that i need to purchase for each item in recyclerview.
private RecyclerView recyclerView;
//Billing
private BillingClient billingClient;
...
7votes
1answer
1kviews
How do I implement 'account hold' status for yearly subscriptions with a 7 day free trial period in my Android app?
I use yearly subscriptions with a 7 day free trial period in my app.
Google released the v3 of its billing library and sent emails to developers + wrote blog articles in order to ask an upgrade to the ...
2votes
2answers
793views
Google Play Inapp Billing v3: what is the purpose of Backend Server?
I have an Android app with inapp subscriptions (with a 7 day free trial period) and I am trying to upgrade it to Google Play Inapp Billing v3 following these instructions:
https://github.com/android/...
0votes
1answer
47views
Google Play inapp billing: where is ClassyTaxiAppWeb?
On this page:
https://github.com/android/play-billing-samples/tree/master/ClassyTaxiJava
is mentioned a 'a read-only web client to access the subscriptions on multiple platforms' but the folder:
https:...
0votes
1answer
212views
Google in app billing v3 view if subscription purchase was a success
I am using this library: https://github.com/anjlab/android-inapp-billing-v3
When a subscription is purchased the onProductPurchased(String productId, TransactionDetails details) method is not called.
...
2votes
1answer
408views
in app purchase dialog not showing in android
I have implemented in-app-purchase. The issue is that the billing dialog billingClient.launchBillingFlow not showing in some devices. First I tested in android 8 and everything works good but when I ...
20votes
2answers
2kviews
in-app purchase crashes when fetching products from the Play Store in Flutter
I am facing an issue after installing and implementing in-app purchase plugin Flutter team provided.
What I did so far:
added 2 products on Play Store that are visible and active.
submitted build for ...
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" ;
...
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 ...
0votes
1answer
231views
Android subscription purchase AccountHold is null
I am using official google example code for user subscription play-billing-sample. I get nullpointexception on checking the account hold when switching google accounts (my phone has two google ...
1vote
1answer
78views
Is there anyway to test subscription items of google in-app billing without making their state active in google play console?
I have a problem with testing subscription items in my app. Regarding the In-App billing documents that I read and stack-overflow posts,
as far as I understood, for testing Subscription Items in In-...
2votes
1answer
943views
version 2.0 of the Google Play Billing Library - .setSkuDetails(skuDetails)
How to .setSkuDetails(skuDetails) in java while calling
BillingFlowParams flowParams = BillingFlowParams.newBuilder()
.setSkuDetails(skuDetails)
.build();
int responseCode = ...
2votes
0answers
83views
E/RecyclerView: No adapter attached; skipping layout / On google play billing
Hey i want to implement google billing into my app but everytime i open the activty where the button is to call my purchase the Console prints
"E/RecyclerView: No adapter attached; skipping layout"
I ...