Questions tagged [android-inapp-purchase]
195 questions
77
votes
1 answer
Successful purchase but has "Class not found" when unmarshalling: com.google.android.finsky.billing.lightpurchase.PurchaseParams
I have an app with In-App Billing in its Adapter (list of items to buy). I am having a problem during testing of the in-App Billing.
Everything works fine - The user is able to go through the whole purchase process. "Successful Purchase" is shown…

lordian
- 811
- 7
- 5
35
votes
3 answers
Google Play In-app Billing API version is less than 3
I just started beta testing the 2.0 update to the billing library for the Play Store and a lot of my users are getting this error Google Play In-app Billing API version is less than 3.
Is this just a matter of time before they update or are some…

casolorz
- 8,486
- 19
- 93
- 200
34
votes
2 answers
How to acknowledge in-app purchases in android?
I have gone through the Play Billing Library
https://developer.android.com/google/play/billing/billing_library_overview
You must acknowledge all purchases within three days. Failure to properly acknowledge purchases results in those purchases being…

Surya Ganesh
- 492
- 1
- 6
- 15
22
votes
10 answers
Android Play Billing Library: onSkuDetailsResponse responseCode is 0, but the size of skuDetailsList is also 0
I'm now using the new Play Billing Library
Basically, I followed the documentation to query available items to purchase
SkuDetailsParams.Builder params = SkuDetailsParams.newBuilder();
params.setSkusList(skuList).setType(itemType);
…

TheOska
- 325
- 1
- 3
- 11
17
votes
1 answer
Google Play Billing Library - querySkuDetailsAsync occasionally returns BillingResponseCode.ERROR (6)
I am using Google Play Billing Library 2.0.3 (implementation 'com.android.billingclient:billing:2.0.3') and it works fine for the most part, but for some users for the reasons unknown, querySkuDetailsAsync() method occasionally fails with…

Redbu11
- 173
- 1
- 7
14
votes
2 answers
Where can I submit a bug for the Play Store or Google Play Services?
I don't know exactly where the bug lies, I think it is on the Play Store but I guess it could be Google Play Services.
Basically a user with accounts X and Y on their phone will make an in-app purchase on my app with account X. Then I will do a…

casolorz
- 8,486
- 19
- 93
- 200
13
votes
1 answer
Service account authentication for firebase function access Google APIs (for in-app purchase info) failing
We are preparing a firebase trigger to handle android's real-time developer notifications, and we have to use Google Play Developer API to understand the details for user subscriptions. Thus we linked firebase service account in Google Play Console…

Yuyun Zhou
- 131
- 4
12
votes
0 answers
Google billing service getting disconnected automatically multiple times within seconds
I am using Google's In-app Billing. (version 2.2.0)
I start billing connection using below code in application class:
billingClient =…

Harminder Singh
- 1,577
- 1
- 11
- 19
12
votes
2 answers
Android Purchase subscription and introductory price
Google came with with the idea of introductory price (https://support.google.com/googleplay/android-developer/answer/140504?hl=en).
My question is related to its API. I can't find the way how to get information about this via Purchases.subscriptions…

Tomas Pavlatka
- 121
- 1
- 3
9
votes
2 answers
subscribed in-app renewal broadcast in android
I have implemented in-app purchase for subscription product, It's working fine. I have set 1 month subscription for each product, and it will get renew after 1 month.
Now my question is does there any way to get renewed product list and renewal…

Ravi
- 34,851
- 21
- 122
- 183
8
votes
1 answer
Android Real Time developer notification for one time purchase is half working
Android's Real Time developer notification works when I use "Slow test card, approves after a few minutes". I'm getting two notifications on my server via pub/sub. One when the purchases has been made and with token and order withconsumptionState:0…

Midnight Guest
- 1,863
- 3
- 16
- 26
8
votes
2 answers
Response Code Item already purchased but purchase list is null
I am implementing IAP in my app. One is for removing ad and other is for adding more puzzle. I was testing that on my device but came across an issue. After buying an item, I am getting response code "Item already owned" but it is not showing in…

Surabhi Choudhary
- 538
- 8
- 14
8
votes
0 answers
Verifying in-app-purchases
The sample app that the Google Developers guide refers to has a method called verifyValidSignature() that looks like this in the BillingManager class:
/**
* Verifies that the purchase was signed correctly for this developer's public key.
*
*…

Magnus
- 17,157
- 19
- 104
- 189
8
votes
1 answer
Recover lost purchase token for a subscription
I am having a major problem right now, we are having instances where our server is unsubscribing users to our application (not in Google Play) and deleting our purchase tokens we receive from Google Play after a successful purchase. We have taken…

theMTGDeckGenius
- 167
- 1
- 12
7
votes
3 answers
How do I check purchase history after delete and reinstall application
I am developing an application which will allow user to purchase using In App Purchase and I want to remove ads after purchase. I can purchase succesfully with code below
BillingFlowParams flowParams = BillingFlowParams.newBuilder()
…

6155031
- 4,171
- 6
- 27
- 56