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
77
votes
8 answers

Why is it important to set the developer payload with in-app billing?

I'm using version 3 of the in-app billing API. I have a single, managed, non-consumable item. I have not released this feature in my app yet, so I want to decide on the purchase payload contents before there are any purchases. From "Security Best…
Travis
  • 2,961
  • 4
  • 22
  • 29
72
votes
7 answers

In-app purchases with multiple accounts

I am facing a problem with in app purchases/subscriptions: If there are multiple accounts on the device, I can't get the purchases, which were made with the second account. This can sometimes be temporarily fixed, by installing the app from the…
70
votes
19 answers

Android in-app billing: Can't start async operation because another async operation (is in progress)

I am using the IabHelper utility classes, as recommended by Google's tutorial, and I'm being hit hard by this error. Apparently IabHelper can not run multiple async operations at the same time. I even managed to hit it by trying to start a purchase…
Wouter
  • 2,623
  • 4
  • 34
  • 43
55
votes
11 answers

Calling startIntentSenderForResult from Fragment (Android Billing v3)

The new Android Billing v3 documentation and helper code uses startIntentSenderForResult() when launching a purchase flow. I want to start a purchase flow (and receive the result) from a Fragment. For example the documentation suggests…
ashughes
  • 7,155
  • 9
  • 48
  • 54
44
votes
2 answers

How to remove Subscription from product list in developer console and what will be its effect on the old subscribed users?

I want to remove the existing subscription product from product list. How would I be able to perform so as I didn't found any option on my developer console to delete the subscriptions ? Also if in any way possible it is allowed, then will it have…
Napolean
  • 5,303
  • 2
  • 29
  • 35
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
35
votes
6 answers

Android In App Billing: Can't start launchPurchaseFlow because launchPurchaseFlow is in progress

I'm implementing In App Billing for the first time and I'm testing my first purchases using the static SKU ids. It worked very well the first time. I called mHelper.launchPurchaseFlow(...) and completed the test purchase. My activity received the…
Kenny Wyland
  • 20,844
  • 26
  • 117
  • 229
30
votes
2 answers

Account information associated with an application installation

It's a widely sought issue among those who implement In-app billing in Android, that how multiple accounts are dealt with. If a user has multiple accounts configured, which one will be used for in-app billing (as there is no option to let the user…
26
votes
3 answers

Getting the ProductDetails price in android-billing-5.0

I have upgraded my Kotlin app to android-billing 5.0 from 4.0, and as such, SkuDetails is now deprecated so I am migrating to using ProductDetails using the migration instructions. Previously I displayed the purchase price for in-app purchases to…
Peter
  • 2,654
  • 2
  • 33
  • 44
23
votes
4 answers

android in app billing purchase verification failed

i' having trouble implementing in app billing in my android app. i'm getting a purchase signature verification failed. In a first time i tough it was the base64 key but i checked it many times and i'm still getting the error, then after i took a…
23
votes
2 answers

What should be the developer payload in android in-app billing v3 api?

I am implementing in-app billing in my app to unlock premium features. The in-app billing sets up correctly. Everything seems fine except the 'developer payload' thing. The sample app says /* * TODO: verify that the developer payload of the…
Amit Jayant
  • 2,501
  • 2
  • 29
  • 38
23
votes
4 answers

Android billing exception

I am testing my billing and I got this exception: java.lang.IllegalStateException: Can't start async operation (launchPurchaseFlow) because another async operation(launchPurchaseFlow) is in progress. at…
Oyoyoy
  • 247
  • 3
  • 6
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); …
19
votes
2 answers

In-app purchase: get the name or ID of the Google Play account that's requesting a purchase

I want to get a name / ID of the user making a purchase. I would like to do without AccountManager if possible, as its use requires an extra permission. Even with AccountManager I don't see a way to determine the current account, so any advice is…
18
votes
4 answers

BillingClient always returns SERVICE_DISCONNECTED

So I have a billing client which I instantiate with billingClient = BillingClient.newBuilder(this).setListener(this).build(); I then call billingClient.startConnection(new BillingClientStateListener() { @Override public void…
1tSurge
  • 663
  • 2
  • 7
  • 20
1
2 3
31 32