Questions tagged [android-inapp-purchase]
195 questions
4
votes
1 answer
How to use proration mode in app subscription android
I using two subscription plans monthly and yearly in my android app.
If a user has subscribed monthly plan then I want to give the user an option to upgrade to a yearly plan. I have read an official document I need to use…

Harsh Shah
- 2,162
- 2
- 19
- 39
4
votes
1 answer
Bad request (invalid value) when trying to retrieve in-app purchase info using the Java Google Play Developer API v3 with a valid purchase token
When using the Java Google Play Developer API (version 3), and requesting purchase information for a valid purchase token, I get the below exception. The API call returns a 400 Bad Request response with the following message.
{
"code" : 400,
…

Zeb
- 106
- 9
4
votes
1 answer
paymentState does not change from Trial period
I am implementing in-app subscriptions with Google Play and synchronize the status of those through polling to Google Play API. The subscriptions have a trial period of 3 days and I expect Google API to return paymentState=0(Pending) or 1(Received)…

Diyan_K
- 171
- 1
- 5
4
votes
0 answers
How to debug released build with in-app billing functionality?
Is it possible to test product subscription in debuggable mode of released apk?
I have updated the apk to alpha channel and want to test subscription purchase flow, but when I generate released build with debuggable : true in-app billing api…

user3606902
- 829
- 1
- 10
- 25
3
votes
0 answers
Android: why does BillingClient queryPurchasesAsync() return an empty list after app reinstall?
I am adding an in-app purchase feature into my Android app. I tried the following behaviour on an emulator:
Launched the app and faked an in-app purchase (using the SKU android.test.purchased)
Ensured that the in-app purchased was validated and…

John DoeDoe
- 133
- 1
- 7
3
votes
0 answers
How to get purchase history made with Google Play Billing?
I'm using Google Play Billing Library, v 4.0. Is there a way to retrieve all purchase orders (purchase history) for the currently logged-in account of the device?
I've tried with queryPurchaseHistoryAsync(String skuType,…

Lora Georgieva
- 43
- 5
3
votes
0 answers
Google in-app billing v4 TrivialDriveSample is very complicated can it be simpler?
I have been writing Android apps for a few years now. I have now to implement in-app billing. I think this TrivialDriveSample is too complex already, and the syntax is overwhelming.
My case is simple, one consumable product, if the sale goes through…

user462990
- 5,472
- 3
- 33
- 35
3
votes
1 answer
In-app product details in different languages using the google play billing library
I'm using the Google Play Billing Library version 3 to fetch available in-app products.
After calling querySkuDetailsAsync on the BillingClient object, I'm correctly getting the SkuDetails for each product.
In the Google Play Console, I translated…

Alex Busuioc
- 992
- 1
- 11
- 24
3
votes
2 answers
How to handle multiple users in In-App Billing Library ? (Best Practice)
I am implementing Google's In-App Billing Library in my application and would like to know the best way to handle the following cases
Multiple Device and Single User
Use Case:
User U1 with Google Play Store Account G1 subscribes to Subscription…

Navjot
- 1,202
- 1
- 11
- 24
3
votes
2 answers
In-app billing acknowledgePurchase issue [using google play in-app billing library]
I am new to android and trying to implement in-app billing first time.
I am using google play in-app library.
https://developer.android.com/google/play/billing/billing_library_overview
I want to implement consumable in-app purchase. I am using…

Gregg Tate
- 31
- 1
- 3
3
votes
1 answer
Android In-App Purchase Downgrade-Upgrade
I have integrated in-app in my Andorid application for single Product productone.
For that, I have created different Product-Ids in my Google Play Console as below :
1. productone.monthly,
2.productone.yearly
As per my knowledge both the Product…

Vishal Zaptech
- 183
- 1
- 3
- 16
3
votes
1 answer
Backend Server for In-App Billing Purchase Verification
The google documentation for the BillingClient queryPurchases method states the following:
"It's recommended for security purposes to go through purchases verification on your backend (if you have one) by calling the following API:…

jwitt98
- 1,194
- 1
- 16
- 30
3
votes
1 answer
Android in-app Billing always reply with error 3: BILLING_UNAVAILABLE
Our app have in-app purchases. Our tests worked fine with real payment methods too, but from abroad customers (Asia in particular) we constantly receive error reports. The Google Play Billing Android library returns response code…

lorenzo-s
- 16,603
- 15
- 54
- 86
3
votes
0 answers
Didn't receive real-time developer notifications
I am not receiving real-time developer notifications from Google play store. I have followed following steps:
Set up GOOGLE_APPLICATION_CREDENTIALS
Set up Listener for messages. Code for message receiver
public List…

Sandesh Dumbre
- 226
- 2
- 9
3
votes
0 answers
Signature verification failed in Expansion Files & In-App Purchase
I have implemented expansion files and In-App Purchase in my app. And app published on beta channel.
While testing when i am downloading expansion files manually for testing below code giving me the error.
E/LicenseValidator: Signature verification…

Naveen Kumar
- 3,738
- 4
- 29
- 50