Questions tagged [in-app-billing]

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

1,000 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
71votes
0answers
3kviews

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 ...
user avatar
  • 751
38votes
0answers
2kviews

Play Store updates/installs app using a different account than the one the user made IAP through

On this bug report on Github https://github.com/googlesamples/android-play-billing/issues/2#issuecomment-305380836 we were asked to raise the issue here. The issue is simple. User has 2 or more ...
user avatar
  • 7,339
16votes
2answers
2kviews

How to detect refund with google billingclient library

I was wondering how to detect a refund, or any type of cancelation of an in-app purchase(not a subscription and not a consumable). I'm currently making my test and when I refund a test in google like ...
user avatar
  • 615
13votes
0answers
834views

Play Billing Library - V3 vs Async vs Sync - different results

I have users that have purchased items (SkuType.INAPP) from my application. In the previously recommended implementation of in app billing the IabHelper.QueryInventoryFinishedListener would return an ...
user avatar
  • 5,914
11votes
1answer
726views

In App Billing BroadcastReceiver Memory Leak

I am opening a Activity with ActivityResult and after buying a item successfully, I am closing the current activity which holds purching process and send data back. But Leak Canary catch a memory leak ...
user avatar
  • 2,352
11votes
4answers
5kviews

android N failing to compile in app billing AIDL

I was just trying to compile my app with the new preview SDK 24 Android N in Android Studio 2.1 Preview 1. I have in app billing in my app. When trying to build the app I get the following ...
user avatar
  • 636
11votes
2answers
5kviews

Android In App Billing - Error Retrieving Information From Server

I am using Android in app billing for in app purchases. In rare cases a number of my users are reporting this error: "Error retrieving information from server. [RPC:S-7:AEC-0]" This is happening ...
user avatar
  • 7,125
9votes
0answers
2kviews

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 = BillingClient.newBuilder(Application.getInstance()).setListener(...
user avatar
9votes
2answers
2kviews

Does Android In-App Subscription Purchase Date Update With Each Monthly Renewal?

I am implementing an app that will have an in-app subscription purchase. The subscription is renewed on a monthly basis. When a user purchases the subscription, they get a free 30 day trial. I ...
user avatar
8votes
0answers
1kviews

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 ...
user avatar
  • 14.3k
8votes
0answers
187views

Is implementing in-app-purchases for Android really this complex?

I'm about to implement In App Purchases (IAP) for a premium-upgrade feature in an app I'm developing, and I've read the official developer guides. There, they mention that You can use the Play ...
user avatar
  • 14.3k
8votes
1answer
271views

Make one IAP valid for different applications

Until now, I distributed my app on the Play Store with an in-app purchase to disable ads. I am redesigning the whole app and I'd like to split it into two applications: one for mobile devices (like ...
user avatar
  • 4,628
8votes
2answers
903views

Identifying refunded Play Store downloads

Play Store is now automatically approving refunds if they happen with 2 hours after the purchase. I have an Android App where people can create and control a VPS gaming host from the app. That is, ...
user avatar
  • 763
8votes
0answers
2kviews

IabHelper Android bug (NullPointerException) launchPurchaseFlow?

I am using the last version files of in-app billing from Google. Today I got an error in my phone when I download the app (I tried to repeat the steps but the error doesn't appear anymore). Let's say ...
user avatar
  • 3,563
8votes
0answers
4kviews

Cancel or refund of consumed In-App purchase in Android

I have an in-app managed item (not subscription) and I consume it after I record it on my server (after verifying with purchase status API). I understand that the refund/ cancellation for in-app ...
user avatar
8votes
0answers
2kviews

Test in App Billing in other countries

I've developed a app and some logs are reporting errors when a brasilian user tries purchase an item. I'm not brasilian and I want to test my app in that country. Is it even possible? My app is ...
user avatar
  • 177
8votes
1answer
2kviews

InApp Purchased in Android

public static boolean verify(PublicKey publicKey, String signedData, String signature) { Log.i(TAG, "signature: " + signature); Signature sig; try { sig = Signature.getInstance(...
user avatar
  • 681
7votes
0answers
117views

Integrating Account Hold status problem: History gets deleted after deleting the app or switching devices

Related github link that I'm pretty sure nobody will answer The related link As you know, Google has enforcing the developers who sells subscriptions to integrate account hold handling mechanism until ...
user avatar
7votes
1answer
1kviews

Google In-app-purchase: How to check if a consumable product purchase status is pending?

I have integrated android In-App purchase to an android application. I overridden the onPurchaseUpdated method to get the response of the purchase. @Override public void onPurchasesUpdated(int ...
user avatar
  • 169
7votes
0answers
341views

ANR on Google's billing library

Anyone have any idea why this ANR might be happening? I thought upgrading from the old IABHelper to the new billing library would solve it but it didn't. I submitted a bug on the billing library ...
user avatar
  • 7,339
7votes
0answers
580views

Google subscriptions validation returns error code 400 Invalid

Our app have a subscription option with various tiers. We are validating the subscription tokens via the Google Purchases.subscriptions.get method : GET https://www.googleapis.com/androidpublisher/...
user avatar
  • 479
7votes
2answers
3kviews

Why Google in-app billing return proper orderId in case of Test Purchase ?

Google says you will receive empty orderId if purchase is test purchase. But we are getting proper orderId, so the question is how to check if the purchase made is a Test Purchase or Not. And why are ...
user avatar
  • 177
7votes
1answer
2kviews

How can I manage in-app billing transactions on an external server securely?

I'm attempting to implement a system for upgrading/unlocking various features of my app using "managed" purchases with in-app billing, and I'm getting bogged down by the lack of in-depth documentation ...
user avatar
  • 506
7votes
1answer
2kviews

in-app billing, inventory.getPurchase is null on different device than payment was made

in my app user can buy ad removal, I keep this item (no consume). So I have fragment in my main activity that check if user bought item. public class BillingInventoryFragment extends Fragment { // ...
user avatar
  • 3,164
6votes
0answers
577views

Redeem Code Option in Payment method not showing in my app. Android Billing

The redeem code option in payment method list is not showing in my app. Screenshot below is from google play billing documentation but the option did not appear in my app. It's already been a week ...
user avatar
  • 176
6votes
0answers
140views

How do you offer the ability to change the subscription frequency of your app from the Google Play Store?

My app offers a monthly subscription right now, and we are in the process of adding annual subscriptions as well. The user should be able to upgrade/downgrade their subscription, and it looks like ...
user avatar
6votes
1answer
1kviews

Android IABHelper vs Billingclient

In our android app, we are using in app billing using IabHelper wrapper library. Example https://github.com/googlesamples/android-play-billing/tree/master/TrivialDrive Now, Google added newer ...
user avatar
  • 894
6votes
0answers
290views

getPurchases() for renewal subscription returns first purchase

I need check that user has active subscription after automatic renew. I do call getPurchases() and expect get all subscriptions (expired and active) or at least information about latest automatic ...
user avatar
6votes
1answer
918views

Android paytm like wallet implementation

I want to implement a custom wallet in my android app. But I cant differentiate which mechanism follow to implement the wallet. Can anybody help me the detail process to implement the custom wallet. ...
user avatar
  • 61
6votes
1answer
818views

How to hide the inactive products from in app billing?

We have an android app supporting In App Billing v3. In our tests, everything else worked fine, but we found that inactive products could also be obtained by querying the inventory. This is how we ...
user avatar
  • 103
6votes
3answers
21kviews

"Error retrieving information from server RPC S-7 AEC-0" while testing Google in-app billing

I am trying to implement Google in app billing to my Application. I created SKU product id and implemented the billing process in code. While I am trying to test the in-app billind after I enter all ...
user avatar
  • 2,382
6votes
2answers
1kviews

"Account determined from" meaning in logs

In my application I'm implementing in-app purchase using Google In-app Billing Version 3 API. In logs from my app I see: D/Finsky (26024): [1204] InAppBillingUtils.pickAccount: com.example.myapp: ...
user avatar
5votes
1answer
4kviews

How to get SKU details of all my inapp items in Google Play Billing

In old version of in app biling i ised to get the IAP item price using the below code. I am unable to find a way for this in new version. Kindly assist me in the way to get SKU details of all my ...
user avatar
  • 2,883
5votes
1answer
1kviews

Google Play Realtime Notifications SUBSCRIPTION_EXPIRED not received on expiration time

I am trying to implement the backend logic for android purchases of an app and started integrating using android document. During the tests, I am able to get SUBSCRIPTION_PURCHASED, ...
user avatar
  • 1,279
5votes
0answers
358views

Play Billing Library v1.0: renewed subscription missing from queryPurchases result

I have an Android app offering auto-renewing subscriptions via In-App Billing, using https://developer.android.com/google/play/billing/billing_library.html. I'm using a lightly modified ...
user avatar
  • 1,096
5votes
0answers
124views

How can I tie Google Play Billing subscriptions to specific accounts?

My app has user accounts. Users can create an account, login, and consume content. I'm interested in creating a subscription model for certain content and using Google Play Billing as a medium for ...
user avatar
  • 20.2k
5votes
0answers
184views

IAB Subscription Free-trial state

What's the right way of managing free trial state of a subscription? I can't find anything about getting the state of a purchase, something like freeTrial = true/false or freeTrialDuration = 7, inside ...
user avatar
  • 4,019
5votes
1answer
878views

App no available error while using Play market Closed alpha testing

I configured Closed Alpha Testing with one developer account and uploaded an APK. After some hours the application has been published to market but if I use the Opt-In url with the phone with the ...
user avatar
  • 13k
5votes
0answers
9kviews

Android In App Billing "Billing service unavailable on device. (response: 3:Billing Unavailable)"

I built and android game which has a premium in app purchase, and I had it working fine for a while. (The game was in a beta testing branch, and users could purchase the premium upgrade fine.) A few ...
user avatar
5votes
0answers
503views

Have the static testing skus for Android In-App Purchasing changed?

During development of an IAB system using the IabHelper I encountered something weird: I am currently trying to create code to handle a canceled request using the static responses provided by Google. ...
user avatar
  • 1,904
5votes
1answer
337views

Android InApp Billing v3 - testing with multiple devices issue

I'm facing one issue on Android InApp billing v3. I have created a managed inapp product in playstore and I need to buy that multiple times from multiple devices. For that, I am testing the app in two ...
user avatar
  • 2,147
5votes
0answers
151views

Google In-App Billing product description

I am testing In-App Billing for an Android app that uses Google In-App Billing v3. I have one problem that haven't been able to fix so far. When Google Play dialog opens after I start the purchase ...
user avatar
5votes
0answers
1kviews

Android in-app billing is returning server response code 2. What does it mean?

I'm using In-App Billing V3. When I try to make a purchase I'm getting a server response code of 2. I've searched but can find no documentation on what this response code means. If you look at the ...
user avatar
5votes
0answers
298views

handle subscription changes in android in-app billing

Say my user has a 4 month subscription. One month within it, she wants to move to a yearly subscription. How does google play in-app billing handle this? Is there a method to move user from one ...
user avatar
  • 13.3k
5votes
1answer
3kviews

Multiple Google Merchant accounts for a single Google Play Developer account?

I am developing an Android application for another company. I would like to release this application under my own Google Play account. The application will have in-app billing. Can I have multiple ...
user avatar
5votes
0answers
348views

in app billing - how to test another currency

I have the new in-app billing (v3) system set up and working in an app. But now I want to know how it would all appear to someone in Europe that would want to purchase in Euro. Is this something to do ...
user avatar
  • 8,159
5votes
1answer
419views

Remove In-App Billing record from google test account for Testing again

I have created google play test account for testing In-App billing, but the problem is that when i purchase the item and then uninstall app and then install it again on that device and test for In-App ...
user avatar
5votes
2answers
2kviews

How is a "test account" different from a "normal account"?

To be able test any implementation of Android Market licensing (e.g. LVL, In-app Billing), Google advises to create a Google Checkout test account, since the developer cannot buy from himself using ...
user avatar
  • 3,199
5votes
2answers
1kviews

How to use In-App Billing with MonoDroid?

I am developing an Android application that will need to make use of In-app billing. I am using Monodroid in Visual Studio and my experience is in C#, I am not very familiar with Java. My questions ...
user avatar
  • 51
5votes
1answer
656views

Failed carrier billing authorization with Google in-app billing

I made an Android app that uses the google in-app billing.Most of the time this works just fine, but some users seem to fail the carrier billing authorization. In that case I get an email with the ...
user avatar
  • 10.6k

15 30 50 per page
1
2 3 4 5
20