Questions tagged [android-inapp-purchase]
195 questions
7
votes
0 answers
Getting "Invalid value" when testing android in-app purchase with static response
I get an error when making test request for verifiyng android in-app purchase (billing) from my server.
I use one of the following products (https://developer.android.com/google/play/billing/billing_testing#billing-testing-static):
There are three…

Sergiiko
- 319
- 1
- 10
6
votes
1 answer
Enable Free Trial for Android Subscription on Google Play
I am having trouble getting Free trail for In-app subscription working. The subscription is working but every time I test (even with new devices/google account) it shows as "Starting today" (see image below, the texts are in Swedish).
I assume you…

Sunkas
- 9,542
- 6
- 62
- 102
6
votes
3 answers
Is it necessary to migrate from "Google Play Billing with AIDL" to "Google Play Billing Library"?
I know that "Google Play Billing with AIDL" deprecated, but the app on which I am working is so complex that I don't want to change the core parts of the application.
On the play console, I am getting the below message:-
"We’ve detected that your…

Nishant Chauhan
- 726
- 7
- 17
6
votes
1 answer
How to implement Android in app purchase in kotlin?
I want to implement Google Play's billing for my android app's in-app purchase, which is written in kotlin. I am following this tutorial.
Here is my code:
private lateinit var billingClient: BillingClient
private lateinit var productsAdapter:…

Tazwar Utshas
- 921
- 2
- 17
- 30
6
votes
3 answers
Android Google BillingClient how to get unconsumed items?
Question: using the Google Play BillingClient 1.1 how can I get only unconsumed purchases?
Background:
In our Android app we wanted to change the "old" billing libraries (using the V.3 IabHelper.java class from the examples) using the…

Tobias Reich
- 4,952
- 3
- 47
- 90
6
votes
1 answer
Clarification on how to verify Google In App Purchase purchase token on the server?
Given that my server end point has received a Purchase Token relating to a Google In App Billing purchase, how do I go about programmatically verifying it and gaining access to its contents?
I can already verify a Google Sign-In token using…
user1300214
5
votes
1 answer
Google In-App Purchase are always refunded
I have some problems with google in-app purchase. All received payments are refunded after 72 hours. Is there an error in my payment codes? I paid myself and did not request any refund, but even that was refunded after 72…

Serhat Hacıoğlu
- 98
- 7
5
votes
1 answer
How to get SKU details of all my inapp items in Google Play Billing
In old version of in app biling i ised to get the IAP item price using the below code.
I am unable to find a way for this in new version. Kindly assist me in the way to get SKU details of all my inapp items in "Google Play Billing"
…

iappmaker
- 2,945
- 9
- 35
- 76
5
votes
1 answer
With Google Play Billing, is it okay to wait with granting entitlement to an in-app purchase until after the purchase has been acknowledged?
The Google Play Billing library documentation on acknowledging purchases states that:
you must acknowledge all purchases that have a SUCCESS state received through the Google Play Billing Library as soon as possible after granting entitlement to…

Bastiaan van den Berg
- 1,585
- 1
- 14
- 20
5
votes
4 answers
Unable to add in app products in google play console suddenly ( Please check the list below for problems. )
My app was published about 4-5 months ago. My in-app products works fine. Suddenly I am unable to add or edit new in-app products. It shows me error "Please check the list below for problems.", but there is no problem in the list. Any help will be…

rameez
- 67
- 3
5
votes
0 answers
Canceling a test subscription is not working as intended in Android
I am aware of Google's recent update on test subscriptions renew more quickly than normal to aid in testing. Eg: 1 month - 5 minutes. https://android-developers.googleblog.com/2018/01/faster-renewals-for-test-subscriptions.html
I purchased a…

Sai
- 15,188
- 20
- 81
- 121
5
votes
0 answers
Android subscriptions - get reliable introductory price information
I have an subscription item with an introductory price for 1 cycle. I am able to fetch this price within the app via the getIntroductoryPrice() method. Once a purchase has been done I am having trouble getting what exact price was paid for the…

XAnguera
- 1,157
- 1
- 11
- 25
5
votes
0 answers
Getting error 400 on Google publisher api Subscriptions.Get with test subscriptions autorenew
I am trying to use the Google Publisher API for backend upgrade/downgrade operations of the subscriptions of my Android app.
I published the app in Alpha channel and having some testers making "test" purchases.
Everything looks good during the same…

bre_dev
- 562
- 3
- 21
4
votes
0 answers
android.test.purchased displays as a white dialog with not buy or cancel button just name and price
During the purchase flow, with ID: android.text.purchased, a plain white dialog box is displayed with only Sample Title and US$.99 at the top. No other buttons are present, e.g. no buy button.
I tried using the actual ID for the app on google play,…

Mike Vertannes
- 41
- 3
4
votes
1 answer
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 In-app Billing API version is less than 3
This…

Hong
- 17,643
- 21
- 81
- 142