Questions tagged [in-app-billing]

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

Filter by
Sorted by
Tagged with
0votes
0answers
114views

Non Consumable IAP buy twice on Android

I'm having a question about android consumable IAP. What happens, when: Install the app Buy a consumable product Uninstall the app Install again Try to buy the consumable again In the sandbox mode ...
user avatar
5votes
1answer
460views

What should you put in `onBillingServiceDisconnected()`?

Here is the method I've got: public void setupBillingClient() { //connect to google play billingClient = BillingClient.newBuilder(context) .enablePendingPurchases() ...
user avatar
0votes
1answer
27views

In-App Billing: Can we create subscription on the fly inside the app?

Is it possible to create a subscription inside my app without first creating it in the google play console? this because the params of my subscriptions, like price, discount, duration, etc. will be ...
user avatar
  • 11k
2votes
2answers
2kviews

How do you check if a user has bought an in-app purchase whenever he open the app?

Note: I'm talking about a one-time purchase that removes ads from the app. Google says you should call BillingClient.queryPurchases() in your onResume() and onCreate() but I'm not sure how to do that. ...
user avatar
0votes
1answer
113views

Google Play payments are refunded after 72 hours

I'm working on a new android project and I want to add in-app purchases to my app. When I add the codes, the purchases are returned to the user after 72 hours. I guess I'm skipping something. Here's ...
user avatar
2votes
0answers
77views

How to find the Purchase state in the new Sell Subscriptions API?

When integrating the Google Play Billing Library, how to know the state of a subscription? I want to know what of the below states is it, base on the Sell Subscriptions lifecycle. Active Cancelled In ...
user avatar
  • 29.6k
8votes
1answer
1kviews

November 1st 2020 / 'Account Hold' : is it mandatory to display an explanatory message to 'Account Hold' users? [closed]

It is mentioned here that a proper management of the 'Account Hold' status is required by November 1st, 2020. The doc says here : "When a user enters into account hold, you should leverage Real-...
user avatar
  • 12.4k
0votes
1answer
44views

Billing API 3.0. Price change user notification

I'm currently implementing in-app purchases on Android using Google Play Billing Library 3.0. There is a section in documentation about Changing subscription prices Documentation says, that after ...
user avatar
0votes
0answers
46views

User is charged but doesn't get access to Paid content Xamarin Forms InAppBilling

I have a Xamarin Forms app in which I used InAppBilling plugin to do in-app purchases. Customers can buy consumables from within the app using app. App calls CrossInAppBilling.Current.PurchaseAsync() ...
user avatar
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
1vote
1answer
242views

params.setSkusList(list) doesn't work when list contains more than one sku productId

Following code doesn't work List<String> test = new ArrayList<>(); test.add("product_1"); test.add("product_2"); ...
user avatar
  • 1,659
0votes
0answers
47views

"Item not found". I'm unable to test my own in-app billing even though everything is correct

I've implemented an in-app in my app successfully and published it to an Internal testing track. I tried testing the in-app billing myself, but it keeps saying "Item not found". I've setup ...
user avatar
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
4votes
1answer
197views

Google Play Billing Subscription: new policy for mandatory "Hold": what needs to be changed in the app UI?

Google will change its policy on the 1st of Nov 2020 : subscription "Hold" will need to be enabled https://android-developers.googleblog.com/2020/06/new-features-to-acquire-and-retain-...
user avatar
  • 939
0votes
1answer
194views

How to configure in app purchases in flutter

I want to have a premium section in my app, where only users who have paid for some price can view it. I want to charge users every month for the premium section, please how can i do it?
user avatar
4votes
2answers
1kviews

Google Play Billing : how to simulate 'Account Hold' status (in debug/sandbox mode)

Before November 2020, an Android app on Google Play has to manage 'Account Hold' status. https://developer.android.com/distribute/play-policies Question is: how to simulate 'Account Hold' status so ...
user avatar
  • 12.4k
0votes
1answer
53views

When I test my app with a real product ID, I can only pay with a test card

My app displays ads and I want to give the user the ability to block the ads by making an in-app payment. So I added in-app purchasing and tested it with test product IDs; the fake credit card is ...
user avatar
  • 2,606
0votes
2answers
333views

Multiple in-app products in android app that has implemented Firebase Realtime Database storage

I've got an app that shows users a recycler view with images coming from Firebase Realtime database. When a user clicks on the image they want it takes them to a page with a purchase button and their ...
user avatar
0votes
1answer
477views

Check if renewable subscription is active with Xamarin.Forms (Plugin.InAppBilling)

I have a Xamarin.Forms application with a few renewable subscriptions. I am using the InAppBilling plugin to purchase these subscriptions. Now my questions is: (which I already asked in this post) How ...
user avatar
-2votes
1answer
42views

Is online video in Android application in app purchase or service?

I have android app and I'm going to sell education videos inside the application. Just now I should understand are videos in app purchases or goods? Should I use Google play billing system to sell it ...
user avatar
  • 291
0votes
1answer
613views

How to handle multiple users in In-App Billing Library ? (Best Practice)

I am implementing Google's In-App Billing Library in my application and would like to know the best way to handle the following cases Multiple Device and Single User Use Case: User U1 with Google ...
user avatar
  • 1,058
1vote
1answer
190views

Unexpected error when querying Google Play Developer API. Please check if you use a correct service account

I am implementing Android Billing client Library V 3.0 . In Billing Client v 3.0 you have to use backend server for subscription states handling. For that purpose you have to link your google cloud ...
user avatar
7votes
1answer
2kviews

querySkuDetailsAsync is returning empty list with BillingResult code SERVICE_UNAVAILABLE

After upgrading the BillingClient to 3.0.0, I started getting about 20% users seeing SERVICE_UNAVAILABLE when querying for in-app purchase. The skuDetailsList is also empty. According to the docs, ...
user avatar
  • 2,902
6votes
3answers
1kviews

What is the new "Resubscribe" feature found in Billing Library 2.0 and how is it different than the old Billing Library 1.2.2's?

In the Android Developer Console, I saw this message Resubscribe isn't currently available for your users because your app does not use Billing Library 2.0 in all active APKs But, I was puzzled. ...
user avatar
0votes
1answer
240views

Test Android in-app purchases with multiple applicationId flavors?

The app I'm working on needs to have 3 variants (dev, QA, live) each with different application IDs, so testers can have multiple variants simultaneously installed. I implemented the above using ...
user avatar
  • 478
0votes
1answer
154views

Where do I find BILLING_RESULT_OK for Google Play Billing isFeatureSupported call?

The google play developer documentation for in-app-purchase subscriptions states Before your app enters the billing flow, you can call isFeatureSupported() to determine whether the device supports ...
user avatar
  • 19.6k
0votes
2answers
289views

How can we use both SkuType.INAPP(One-time products) and SkuType.SUBS for subscriptions in one Android Application

I want to use both one-time product(SkuType.INAPP) and subscriptions(SkuType.SUBS) on my Android application. I'm wondering how can we implement both at once.
user avatar
0votes
0answers
69views

How to sell pictures using in-app purchases on Android Studio

I've created an android app and I want to sell my wallpapers/pictures. I want my users to be shown a screen where they can view my images and decide whether they want to purchased them or not
user avatar
2votes
1answer
274views

Why Android IAP initializing but not working?

I am using this library to implement in app purchase in my app. https://github.com/anjlab/android-inapp-billing-v3 I added this code to my gradle. repositories { mavenCentral() } dependencies { ...
user avatar
0votes
1answer
150views

onPurchasesUpdated method can't be overridden in Java for Android app

I'm trying to write a Java for Android app using In-App Billing. I'm using this link as a guide. I've added the code they prescribe under Initialize a Billing Client, but I'm getting a message that ...
user avatar
  • 2,945
1vote
0answers
241views

How to handle purchase made outside of the app (From Google play store)

Recently Google adds the option to resubscribe the in-app subscription from the google play store even when the plan expired (up to one year). You can check here When the user re-purchased the ...
user avatar
  • 3,153
1vote
0answers
33views

What's the difference between "Restorations" and "Resubscribing" in android subscription?

I'm implementing Android new subscription feature in my application. I have checked the docs. But I don't understand the difference between Restorations and Resubscribing before the subscription has ...
user avatar
0votes
1answer
187views

How to purchase each item in recyclerview with in-app purchase

I am trying to add in-app purchase for my app.The problem is that i need to purchase for each item in recyclerview. private RecyclerView recyclerView; //Billing private BillingClient billingClient; ...
user avatar
1vote
1answer
70views

How to test subscriptions "in_app_purchase"?

I use official plugin for in app purchase in my app. I used subscriptions in my app. Now I get subscriptions list, but when I click on buy I get this error: This version of the application is not ...
user avatar
  • 4,727
0votes
1answer
464views

Android App crashing on click of in-app purchase

I referred to the Android documentation to implement an in-app purchase to remove ads. https://developer.android.com/google/play/billing/integrate This is my code: public static final String ...
user avatar
0votes
1answer
262views

Dynamically fetch messages published to a Google pub/sub topic in android

I am building a app with in-app subscriptions. I have implemented Real Time developer notifications as recommended by Google by properly configuring as mentioned over there. Whenever I purchase or ...
user avatar
16votes
3answers
3kviews

How to handle BillingClient.onBillingServiceDisconnected()?

Recently I migrated one of my apps to Google Play In-App Billing v3. Since the release I get some crash reports on Samsung devices only, which are all related to BillingClient....
user avatar
  • 1,230
1vote
1answer
95views

it allows publish app in huawei store with google purchase?

I have app, which published in google play store an working nice. I want to publish this app in huawei store. but in my app I have in-app purchase with google billing. Is huawei allows publish app in ...
user avatar
4votes
1answer
211views

Why does an order with Refunded status show as PURCHASED in Google in-app payment system?

I use Google in-app Billing Version 3 in my Android App, I'm testing the order module of the App based the following code. In the case, a user's order has been Refunded by Google Play, but when I run ...
user avatar
  • 410
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
1vote
1answer
689views

Flutter in-app purchase (IAP) Store unavailable

I am implementing in-app purchases thanks to the IAP package but I get the message unable to connect to the payment processor while using Android Emulator. I used the code in the example. Apparently ...
user avatar
7votes
1answer
1kviews

How do I implement 'account hold' status for yearly subscriptions with a 7 day free trial period in my Android app?

I use yearly subscriptions with a 7 day free trial period in my app. Google released the v3 of its billing library and sent emails to developers + wrote blog articles in order to ask an upgrade to the ...
user avatar
  • 12.4k
0votes
2answers
585views

Android billing api onBillingSetupFinished possible states

Which states on onBillingSetupFinished should I handle? What I mean is, there are 12 possible states on the BillingResponseCode interface: int SERVICE_TIMEOUT = -3; int FEATURE_NOT_SUPPORTED = -2; int ...
user avatar
1vote
2answers
392views

Should we unlock in-app item after purchase is success (onPurchasesUpdated), or after acknowledgement is sucess (onAcknowledgePurchaseResponse)?

Ever since in billing library 2 and 3, there is an extra acknowledgement step we need to perform, after purchasing is success. When purchasing is success, the following call-back will be triggered. ...
user avatar
1vote
1answer
225views

Google In App Billing differentiate user accounts

I'm developing an app that contains In App Billing non consumable product (Life time Subscription). User has one email associated with Play Store on his device. Scenario: User A create new account ...
user avatar
0votes
2answers
339views

How do you test Android in app billing with non-consumable products

So I'm building an Android app that uses the "freemium" monetization model. I'm able to make purchases with a "test card, always approves" of the "premium" upgrade non ...
user avatar
  • 1
3votes
1answer
694views

When to call BillingClient.endConnection()?

From Google doc, it mentions When you are done with this object, don't forget to call endConnection() to ensure proper cleanup. This object holds a binding to the in-app billing service and the ...
user avatar
1vote
0answers
305views

Getting InAppBillingPurchaseException when try to purchase a product

To Update my App to use InApp-Purchase in Xamarin Form, I'm using InAppBilling Plugin https://jamesmontemagno.github.io/InAppBillingPlugin/. I setted up correctly the sandbox account on my phone and I ...
user avatar
1vote
0answers
50views

In-app billing library in android enterprise

I have some troubles about using in-app billing library v3 in managed devices using android enterprise In my public app I have two sku objects (subscription items) to be purchased, those objects ...
user avatar
0votes
2answers
109views

Play Billing Library: What if app fails to give entitlement?

I'm learning Google Play Billing Library to use in my Android App. I sell coin in my app as consumables product. The flow is: user buy the item, app consume the item, if consume success increment the ...
user avatar

15 30 50 per page
1
3 4
5
6 7
51