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
2
votes
1 answer

View Confirmation recharge billing Dialog when send SMS

In the following Code to send SMS using SMS Manager: SmsManager smsManager = SmsManager.getDefault(); smsManager.sendTextMessage(phoneNo, null,message, null, null); In the below dialog that i…
Mohammed Saleem
  • 568
  • 5
  • 20
2
votes
1 answer

Android IAB product only for selected countries?

I am trying to have IAB subscription in my app targeting people in particular location. Can we create a subscription/sku targeted only for a specific country?
2
votes
5 answers

Android InApp Billing : How to detect back press interrupting the purchase process?

I'm trying to implement the inApp billing service with IabHelper. I manage to go through the full purchase process without problems. //----------------------------------------------- public void billingServiceLaunchPurchase(String item)…
2
votes
2 answers

Android fetch price of purchase using AndroidBillingLibrary

I am using AndroidBillingLibrary for purchasing. But I don't know how to get the price of purchase (in-app item) in code. If it possible using the library, because this library based on In-app Billing API version 2? I saw that it is possible in API…
Volodymyr
  • 6,393
  • 4
  • 53
  • 84
2
votes
1 answer

in app billing: How to find expiration date of user subscription

I am adding a subscription feature to my app. Is there any way I can know the expiry date of the current subscription? I searched everywhere and cant seem to find the answer Thanks you
Snake
  • 14,228
  • 27
  • 117
  • 250
2
votes
1 answer

How to call getpurchase method in inapp billing app android?

I have implemented in app billing activity in my app. its working fine. but to make purchase buttons invisible.i have used the below code , but it is not working.can anybody help on this. public class MainActivity extends BlundellActivity…
2
votes
4 answers

Android Activity destroyed when it shouldn't be

I am using Google Play In app Billing and submit my request using the IabHelper, which under the hood uses startIntentSenderForResult. As expected, upon completion of the call (Google Play Activity closes) the result is returned to my Activity in…
Syntax
  • 2,155
  • 2
  • 23
  • 34
2
votes
2 answers

Android in-app billing getting dialog like “item not found”

I am working on in-app billing. I have done all the steps. When I run my signed apk, and after clicking on buy button I am getting this dialog "item not found". Also after clicking on ok another dialog will be open like "the item you requested is…
kyogs
  • 6,766
  • 1
  • 34
  • 50
2
votes
2 answers

Android billing - how to set up a buy buttons and correctly read whether the user canceled or bought?

I am working from the Dungeons example that the Android provides, and it feels like I almost got it correctly, but I can't figure out how to detect if the person pressed the back button and backed out of the purchase. Here is what I have so…
Genadinik
  • 18,153
  • 63
  • 185
  • 284
2
votes
3 answers

Android In-App purchases with extra infomation

I ask this question expecting the answer to be 'not possible', as I have attempted to research this already and found no fruit! I thought that I would give the community a chance to weigh in however. I have a working in-app billing system, but what…
melodiouscode
  • 2,105
  • 1
  • 20
  • 41
1
vote
1 answer

Google Play Billing Library - Hot to check consumption status?

I am updating an older Android app to the latest Google Play Billing Library. To handle consumable products the docs say: Make sure the purchase wasn't already consumed by checking the consumptionState from the result of calling…
Andrei Herford
  • 17,570
  • 19
  • 91
  • 225
1
vote
0 answers

Implement Android Billing Introductory Offer in Kotlin

I am looking to add an introductory offer or free-trial to my google play subscription. I am using the new version of the billing library (5.0), however I cannot see the details of the subscription offer anywhere in the object returned from…
1
vote
1 answer

Expiration notification received a second time after an android subscription purchase

I have a strange behavior with SubscriptionNotification, when we purchase a subscription and cancel it we get in total 4 notifications : the first one for the purchase (received at 08:11:40) { "startTimeMillis": "1680768693830", // 2023-04-06…
Yrtiop
  • 51
  • 15
1
vote
1 answer

Android Billing - How to get subscription duration from Purchase object

I am using version 5 of billing library. I have a subscription with product id "MySub" that has two offers. One monthly and one yearly with offer ids "sum.monthly" and "sub.yearly". When I purchase for example the monthly option, the purchase object…
Anonymous
  • 4,470
  • 3
  • 36
  • 67
1
vote
0 answers

Test billing products

In the past we could test the in app purchase with static skus like following: android.test.purchased android.test.canceled android.test.refunded android.test.item_unavailable This did work without the need of a published app. Now (in billing v5)…
prom85
  • 16,896
  • 17
  • 122
  • 242