Questions tagged [in-app-billing]

In-app Billing, a service provided by Android operating system.

In-app Billing is a service allowing developers to sell digital goods from inside the application.

Similar technology for is called In-app Purchase.

2597 questions
56
votes
11 answers

Android In-App Billing: Purchase state stays "purchased" after order cancelation

I'm currently testing my InApp billing mechanism (using the InApp Billing version 3 API, therefore taking the TrivialDrive example as reference). I have one managed item, which is upgrade to premium version. Now, purchasing the item with my test…
Toni Kanoni
  • 2,265
  • 4
  • 23
  • 29
53
votes
9 answers

Implementing In App purchases in Android?

Edit: Android now supports in-app billing! Original question: It looks like Android won't natively support in-app purchases for a while, and when it does there might be a huge user base with devices that don't support them. What's the best way to…
hpique
  • 119,096
  • 131
  • 338
  • 476
53
votes
6 answers

Billing API v3 IabHelper NullPointerException

edit 4/15: Catching nullpointer in IabHelper appears to have stopped this problem. I am no longer seeing the exceptions being thrown, I'm going to accept this as an answer. edit 4/04: A little bit of a deeper dive. There are try catch blocks that…
logray
  • 2,332
  • 1
  • 29
  • 30
48
votes
4 answers

android billing:4.0.0 - queryPurchases(INAPP) and purchase.getSku()

I refresh to android billing version 4 and 2 things are not working anymore. First I have this: else if (billingResult.getResponseCode() == BillingClient.BillingResponseCode.ITEM_ALREADY_OWNED) { Purchase.PurchasesResult…
RGS
  • 4,062
  • 4
  • 31
  • 67
47
votes
2 answers

Are there alternatives to using Google's in-app-billing , as a way to avoid publishing private info?

Background Starting from September 30th this year (end of this month), Google won't allow developers that sell apps and developers that use in-app-billing to show their apps without also showing their address . Here's what they write: Add a…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
46
votes
1 answer

In-app purchase promo codes breaks remote server verification?

Releasing promo codes for in-app purchases seems like it will prevent an app from (ever again) performing remote server purchase verification! When a promo code is used for an in-app purchase (the PURCHASES_UPDATED broadcast), it will completely…
ballzak
  • 701
  • 2
  • 6
  • 26
46
votes
7 answers

in-app billing android return authentication is required when try to subscribe to product

This is my first time to deal with In-App Billing in android 1) I am using API v3 2) I have upload alpha version of my app to be able to test then 3) I have created a subscribe product 4) This is my code to subscribe in the…
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
42
votes
5 answers

“The item you were attempting to purchase could not be found” Android in-app billing

I am receiving this error while testing my app. The app is signed and uploaded to the alpha testing portion of the developer console. The in-app item has the status "Active". I have entered an account other than my developer account in "testing…
CyberedElf
  • 539
  • 1
  • 4
  • 12
41
votes
1 answer

Android In-App Billing failure, saying "You already have a pending order for this item."

I've implemented in-app billing and I'm running into an issue with it. Here is what I see. Place an order for an item Wait for a little while for the order to go through If the purchase is taking a while, the user hits the back button to cancel…
Justin
  • 874
  • 8
  • 15
40
votes
11 answers

How to remove test IAP purchase from Android Google Play

I set up a beta account to test IAP for google app that I am working on, the issue I have is, once I have purchased One-time products(non-recurring charge) the test IAP, I cannot 'remove it' as such, so now, even when I delete the app and…
Hypergater
  • 559
  • 1
  • 5
  • 15
40
votes
5 answers

Server-side verification of Google Play In-app billing version 3 purchase

I'm unable to find a straight answer as to how I verify an in-app billing purchase on the server before making downloadable content available to the user. I use in app-billing version 3. I purchase managed products using code based on the IabHelper…
britzl
  • 10,132
  • 7
  • 41
  • 38
39
votes
9 answers

Error in Adding the In-app Billing Library

I was doing this following these steps as mentioned in the link. Copy the IInAppBillingService.aidl file to your Android project. (1) If you are using Eclipse: Import the IInAppBillingService.aidl file into your /src directory. (2) If you are…
37
votes
4 answers

In-App Billing v3 - Don't detect refund

I've followed the training about "In-App Billing v3" of Google. I get to do a buy of a item but I've a problem. https://developer.android.com/training/in-app-billing/index.html I've canceled and refunded the buy but the app detect the buy as true. I…
JMPergar
  • 1,906
  • 1
  • 19
  • 21
36
votes
5 answers

Is it possible to debug locally Google Play's in-app billing in Android Studio?

I am getting this error testing in-app subscription products locally. authentication is required. you need to sign in to your google account I was able to check the the inventory for the product but shouldn't I also be able to purchase it? There…