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
1
vote
1 answer

Deprecated Inventory object from google play billing library 1.0?

In the previous library as we were getting Inventory object, how can we get it from billing library version 1.0? How can we get developer payload, which we are getting in Purchase object? For reference : public void…
Sumit T
  • 1,273
  • 2
  • 17
  • 32
1
vote
0 answers

CRASH BILLSERVICE UNITY

everybody. I got something error when update our app to play store. I tested ok but when user play, they send alot of crash to google service. Hope you can help me to know what happen. Thank you. java.lang.Error: FATAL EXCEPTION…
1
vote
2 answers

InAppBilling registering BroadcastReceiver in AndroidManifest

I'm implementing InApp Billing in my Android app. Everything works well, however, I'm trying to decouple broadcast receiver from an activity into manifest. Especially with this suggestion in Android's trivialdrive sample: // Important: Dynamically…
1
vote
0 answers

Refunded items not showing up in inventory

I'm using the in app purchases implementation of the Trivial Drive example. I can't figure out how to get the inventory with cancled and refunded items, so I can decide on my own how refunded items are handled. Does getPurchases from the…
JayTee
  • 1,114
  • 2
  • 11
  • 18
1
vote
1 answer

Android - In app billing V3. Is it safe to call getPurchases on the UI thread at all times?

I want to retrieve the list of purchased items for my application. We only have the getPurchases API to do that. Its documentation says: Because the Google Play client now caches In-app Billing information locally on the device, you can use the…
1
vote
2 answers

Android Studio: debug classes depending on a flavour

I have an application with three different flavours and two build types. The main module defines some common interfaces and each flavour implements them. The flavours correspond to stores : google, amazon and samsung. The app proposes some in-app…
Gordak
  • 2,060
  • 22
  • 32
1
vote
0 answers

I can't consume in app billing?

I have a beta app google play. I can buy item once but When I want to buy again it says: you already own this item and I can't buy more then one. I think I can't consume; I searched but I can't solve this. I add my codes: mHelper = new…
1
vote
0 answers

If 'Play Store' app is not running, IAB fails with "Unable to start service Intent."

I have working In App Billing working in Android: IABv3. However, it will only operate properly if the 'Play Store' app is running in the background. If I kill the 'Play Store' app, then starting up IAB will fail with this error: W/ActivityManager(…
1
vote
0 answers

Trial Subscription order numbers

According to Google's documentation, orderId field of the INAPP_PURCHASE_DATA should be formatted in a way that you can figure out an recurrence number from it. "GPA.1234-5678-9012-34567" (base order number) "GPA.1234-5678-9012-34567..0" (first…
MVojtkovszky
  • 519
  • 4
  • 11
1
vote
1 answer

Canceling subscription for all users and disabling auto renewal

Reading the documentation for subscriptions and related SO questions/answers i am still confused what to do when i have to stop providing the subscription services and…
1
vote
1 answer

Google Play In-app Billing - list purchases

I wish to get list of in-app purchases that I purchased but have not consumed. Does Google Play provide such API?
1
vote
0 answers

getPurchase returns the first subscription not the last one

I am using the subscription model in Android. when I query inventory,the listener is as follows IabHelper.QueryInventoryFinishedListener mGotInventoryListener = new IabHelper.QueryInventoryFinishedListener() { public void…
Snake
  • 14,228
  • 27
  • 117
  • 250
1
vote
1 answer

onActivityResult() not called after startIntentSenderForResult()

UPDATE: I have now tried to run the same flow from a regular Activity, and getting the same result - onActivityResult() not fired. Tested on two differenet physical devices (running android 4.4 and 5.1) Note: This question was asked before, yet…
shebang
  • 79
  • 1
  • 7
1
vote
0 answers

Testing android in app billing doesn't show any products when bebugging

I have a simple app that has an unlock feature in it. When a user purchases this they can unlock more content in the app. When I debug the app I don't get any errors, but I am unable to retrieve a list of products using the google billing…
Paul Ledger
  • 1,125
  • 4
  • 21
  • 46
1
vote
1 answer

Get the tax for google analytics with in-app-billing

I have an app with in-app-billing & google analytics setup and now I want to track my transactions and purchases from within the app. My issue is that I can't get my head around how I'm supposed to get the tax for the transaction. The tax is…