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
2 answers

Using Android BillingClient, how to restore a user's IAP after re-installing, or changing their device?

My application has a single one-time non-consumable IAP to turn off advertisement. I'm trying to provide a "Restore Purchase" option for my application. In the event a user uninstalls the application or migrates to a new device, they have an option…
1
vote
0 answers

Using in background thread Google Play billing library v3

I'm migrating my code from old AIDL google play billing system to the newer Google Play Billing library v3. I used old code in background threads to check if a purchase was present for example. The new library uses several listeners and methods like…
1
vote
1 answer

Same In-App product shared among multiple apps (Android)

Is it possible to have the same in-app product(managed) in multiple apps? Such that if a user buys a premium upgrade in one of the apps, he gets premium upgrade in all of them. Note that I'm not planning to maintain a user database currently and…
1
vote
1 answer

Development package name different from the PROD package name

I have my PROD app installed on my android phone with the package name "com.mycompany.app". however to develop and test my app I use the package name "com.mycompany.debugapp". in this way I can have the 2 app at the same time installed on my phone,…
1
vote
1 answer

How to Test Google Play Billing Subscription(Not In-App Purchase) in android

I have implemented Google Play Billing Subscription (Monthly) and the app is live on Google Play. How can I test the subscription is working fine or not. When I run Subscription code it asks for a payment method.
1
vote
1 answer

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

Following code doesn't work List test = new ArrayList<>(); test.add("product_1"); test.add("product_2"); SkuDetailsParams.Builder params = SkuDetailsParams.newBuilder(); …
beginner
  • 2,366
  • 4
  • 29
  • 53
1
vote
0 answers

How to write automation tests for In App Billing in Android

I need to write tests to automate the in app billing on Android and validate whether the purchase went through successfully or not. I understand that there are API's to query sku's, products as well as purchases but how should i automate a purchase…
1
vote
2 answers

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. public interface PurchasesUpdatedListener { …
Cheok Yan Cheng
  • 47,586
  • 132
  • 466
  • 875
1
vote
2 answers

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 consumable product just fine. The problem I'm having is once I make that…
Omri
  • 11
  • 1
1
vote
1 answer

Human readable period from Android Billing library

Android Billing API shows a period in the following format P1M - 1 month P1Y - 1 year P2W - 2 weeks P3D - 3 days Is it standardized format and are there utils to format it to human-readable strings? Or I need to reinvent the wheel and do it myself.
jakub
  • 3,576
  • 3
  • 29
  • 55
1
vote
2 answers

Android Billing: changing the price of a subscription

It's possible to change the price of an active subscription item, as described here. However, it is not clear to me whether the developer has to notify the user about the price change, and get their consent, or whether the developer can rely on…
drmrbrewer
  • 11,491
  • 21
  • 85
  • 181
1
vote
1 answer

Is it possible create one subscription across multiple apps?

I have two versions of my app: With ads Without ads. And I have subscriptions in my app. I want to share one subscription across these apps. For example such a scenario: The user buys a subscription in the app with ads and later he buys app…
Axbor Axrorov
  • 2,720
  • 2
  • 17
  • 35
1
vote
1 answer

Google Play Store SubscriptionPurchase.Get API response clarification

I am looking at this document from Google Developer API for Subscription Purchases response the link below: https://developers.google.com/android-publisher/api-ref/purchases/subscriptions#methods Specifically, for the field linkedPurchaseToken, two…
1
vote
0 answers

How Can I catch Google Play Subscriptions Payment

I try to google play subscription billing. Code is working doing payment. But I want to try when a payment successfull ı want to catch payment cost,time(montly,yearly) and I send my php API for example with an ID or Token. How can i do this. I…
nyproje
  • 11
  • 3
1
vote
1 answer

All Google Play subscriptions are refunded after trial period

I am developing Android app with com.android.billingclient:billing:2.0.1. My subscription has the following parameters. Billing period: 3 months Free trial period: 3 days Introductory price: - Grace period: 3 days But all of them (>100) become…
Alex
  • 419
  • 1
  • 5
  • 24