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
0
votes
0 answers

Consuming purchase results in a null object reference

Billing flow launches successfully, and I receive the purchase receipt email. However the fatal error occurs when client.consumeAsync(consumeParams,consumeResponseListener); is called. This is problematic because it means the purchase has not been…
0
votes
1 answer

What should I do to fix Restore Purchases PaymentPendingError error?

Hi I am testing sandbox subscriptions with test user 5 min / month and 30 min/ year with Revenue Cat. And I am also testing restore Purchase. But every time handle the same error PurchaseCode.PaymentPendingError With debug I see…
Serg Burlaka
  • 2,351
  • 24
  • 35
0
votes
0 answers

Android Billing library: Fatal Exception: java.lang.NoSuchMethodError No static method

We're using a library that depends on com.android.billingclient:billing:1.1, and got these crashes for the SHIELD device. How can this issue be resolved? Fatal Exception: java.lang.NoSuchMethodError No static method …
user1615898
  • 1,185
  • 1
  • 10
  • 20
0
votes
1 answer

In-app purchases (panel does not appear for purchase)

When you apply in-app purchases described in the developer.android website this is the explanation link Use the Google Play Billing Library Everything is perfect I can get the price, description and address of the product The problem is the purchase…
Mustafa Max
  • 59
  • 2
  • 9
0
votes
1 answer

Disabling instant run also disables breakpoints

I've recently ran into: Unexpected scopes found in folder 'TrivialDrive_v2\mobile\build\intermediates\transforms\dexMerger\debug'. Required: EXTERNAL_LIBRARIES. Found: EXTERNAL_LIBRARIES, PROJECT, SUB_PROJECTS which has a fix suggested here, which…
Sebi
  • 4,262
  • 13
  • 60
  • 116
0
votes
1 answer

launchBillingFlow() couldn't display the Google Play purchase screen

I'm using Google Play Billing Library in my app. App relase in internal test relase type. But when I clicked product button, launchBillingFlow() couldn't display the Google Play purchase screen.After click, code follows directly "//DO SOMETHING AND…
0
votes
1 answer

IAP Billing Period and Price Change

There are multiple auto-renewable subscription plans that a user can select from and the subscriptions have been configured in "Google Play Console" with monthly billing period. During the change of price, I want the new price to be effective…
0
votes
1 answer

Unable to get the all active subscriptions from Google Play

Please help me to figure out what I'm missing. I have an Android App which has a few subscriptions products, in total we have 5 subscriptions (two in use, the rest for internal purposes), all of the are active and have the same configuration…
0
votes
1 answer

All in-app purchases get cancelled and refunded within five minutes (Alpha test)

It is my first time implementing in-app billing for my app, and I have set up a one dollar donation that is bought through the click of a button. The following is my activity where all the purchase flow occurs: public class DonationsActivity extends…
Daniel Duque
  • 159
  • 9
0
votes
1 answer

Android in app subscription status first month onward

I have an android app using google in app monthly subscription, The subscription is working fine when user is subscribe successfully it will go through public void onProductPurchased so I can update the database, but the problem is first month…
0
votes
1 answer

Google Play Billing method "queryPurchaseHistoryAsync" not getting all purchases

I have 4 subscription types in the app I'm developing. Two monthly (one with discount) and two yearly (one with discount). I am in the testing step. When I ask the purchases history I am not getting all the lasts subscriptions of each type as the…
Lenin
  • 500
  • 3
  • 11
0
votes
0 answers

what is the reason of this ? java.lang.IndexOutOfBoundsException

java.lang.IndexOutOfBoundsException: at java.util.ArrayList.get (ArrayList.java:411) at salavat.mahammad.xxx.salavat.ayarlar$10.onSkuDetailsResponse$32ef7931 (ayarlar.java) at com.android.billingclient.api.BillingClientImpl$10$1.run…
0
votes
1 answer

How to make acknowledge purchase work Android IAB

I am trying to acknowledge my purchases on android but I am getting response code 3 every time with the message 'Google Play In-app Billing API version is less than 9'. The purchases are arriving at this functioning with all of the details required,…
paul_f
  • 1,296
  • 17
  • 20
0
votes
1 answer

Managing Google Play subscriptions not working

My app has in-app subscription purchases but I am feeling really confused regarding the whole implementation process. When the app opens I am calling onPurchasesUpdated(int responseCode, @Nullable List purchases) to check if the user has…
0
votes
1 answer

Google Play Billing Library 2.0: must old non-consumable purchases be acknowledged?

I'm currently in the process of switching existing apps from Play Billing Library v1.x to v2.0. For in-app purchases that are not consumables (one-time purchase that unlocks premium features for example), how does this work for purchases made before…
Stéphane
  • 1,518
  • 1
  • 18
  • 31