Questions tagged [android-billing]

Android In-app Billing is a Google Play service that lets you sell digital content from inside your applications.

You can use the service to sell a wide range of content, including downloadable content such as media files or photos, virtual content such as game levels or potions, premium services and features, and more. You can use In-app Billing to sell products as:

Standard in-app products (one-time billing), or

Subscriptions, (recurring, automated billing)

Useful links

475 questions
0
votes
1 answer

Testing: Which country doesn't support billing library?

Our app support in app subscription. Actually we didn't check this method before trying in-app-subscritpion process: https://developer.android.com/google/play/billing/billing_reference#isBillingSupported This missing check, I suspect it can cause a…
0
votes
1 answer

Unable to get updated Purchase object after Acknowledging the purchase in new Google billing Api 2.0

I am implementing the new billing API 2.0 which has this purchase acknowledge method. Earlier i was using AIDL for my purchase and i had following use case is that i used to pass developer payload during initiating purchase and used to get back my…
Rajat Beck
  • 1,523
  • 1
  • 14
  • 29
0
votes
1 answer

Does queryPurchaseHistoryAsync return purchases from another package?

The documentation for queryPurchaseHistoryAsync describes: queryPurchaseHistoryAsync(String skuType, PurchaseHistoryResponseListener listener) Returns the most recent purchase made by the user for each SKU, even if that purchase is expired,…
0
votes
1 answer

How to check subscription state in Android billing?

I have some app, which have subscription. User can buy subs, but how I can check is subs currently active (without server validation)?
0
votes
0 answers

How Test Google Play Billing

I've put an application on Google Play for $5. How do I know if a user using this app has bought it? I am a beginner please help me ! I need to use such a way in my application: if (appBought) { //SOME_WORK_1 } else { //SOME_WORK_2 }
0
votes
1 answer

Where are data from getPurchases() stored (when device is offline)?

So there is this function https://developer.android.com/google/play/billing/billing_reference#getPurchases and apparently it's able to return me the valid subscriptions even when the user is offline. Can I rely on this method to always tell be…
Novellizator
  • 13,633
  • 9
  • 43
  • 65
0
votes
0 answers

Google play billing crashes on Api level bellow 19

According to google's documentation, google play billing should work on API 8 and later, but isn't working. https://developer.android.com/google/play/billing/billing_overview I implemented the basic guide from their…
0
votes
0 answers

NullPointerException BillingManager.java from In-app Billing

I added a new billing library to my project. compile 'com.android.billingclient:billing:1.0' I added a BillingManager.java class to my project from here…
Anton
  • 907
  • 1
  • 10
  • 31
0
votes
1 answer

with Gluonhq Charm Down, how to integrate and then test its InAppBillingService with the Google Play server?

I have created an Android version which includes now the Gluonhq InAppBillingService for purchasing my app under Google Play Store. This version is loaded in Google Play Developer console. One tester (myself, with another gmail account) can load…
0
votes
1 answer

how to easily test a billing app with Google Play developer console?

Why this question? I read many articles in "Google Play Developer Console" site (GPDC) but I don't understand how to completely test by myself an in-app billing requesting the Google Play server, before I submit it to testers: I already got a…
0
votes
1 answer

GooglePlay Billing lifecycle

I'm trying to use the latest in app billing library of this sample but I have doubt about its lifecycle onConsumeFinished is called before or after onPurchasesUpdated? When I should release resources? Should I update status in onPurchasesUpdated or…
0
votes
1 answer

How to get description from the response code returned by BillingClient in Android?

I am using the new Play Billing Library 1.0 in my Android app. After the purchase process is complete, in onPurchasesUpdated, I get the responseCode as an int from Google Play. How do I programmatically get the description for this responseCode in…
khateeb
  • 5,265
  • 15
  • 58
  • 114
0
votes
1 answer

InAppBilling - Is there any way to set my existing users as premium?

My app is currently paid and I have thousands of paid users. however, I want to make it free with some limitations and sell premium upgrade for new users. So far so good. But how can I set the thousands of current users as premium, since they…
Itapox
  • 579
  • 1
  • 7
  • 25
0
votes
0 answers

How to get price of an app for different countries by using in-app purchase in android

Suppose my app is on play store available for different countries. As according to the country, app price changes, So I want to fetch app price according to the country. How to do this? Bundle querySkus = new Bundle(); …
0
votes
1 answer

IabHelper: check if subscription is auto renewing

I have an Android app with a Subscription, and I use the IabHelper to query if the user has an active subscription. Now I also need to know whether or not this subscription is auto-renewing. I am querying the subscription status like this: private…
Terry
  • 14,529
  • 13
  • 63
  • 88