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
17
votes
3 answers

Why Android BillingClient v2 slow credit card test never cancels?

I am implementing the new BillingClient library (v2.1.0) for a non-consumable in-app purchase. I am testing pending transactions with a test user. It works fine with "Credit card approves after a few minutes", but with "Slow credit card, rejects…
Spirrow
  • 1,120
  • 6
  • 18
17
votes
2 answers

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 that : The purchase is still present in…
Ananta
  • 660
  • 1
  • 7
  • 19
16
votes
1 answer

Google Play Billing Library: Determine base plan / expiry of subscription purchase

I am using the Google Play Billing Library 5 and have a subscription product with different base plans. When processing the purchases in the PurchasesUpdatedListener or in the callback of queryPurchasesAsync, I receive a list of Purchase objects…
15
votes
2 answers

In App billing not working after update - Google Store

I have implemented In-App billing in my app - and very recently google has updated it,previously i was testing the in-app billing with "android.test.purchased" and it was working fine (Buy full Version and Restore full version). Now i took the…
Goofy
  • 6,098
  • 17
  • 90
  • 156
14
votes
3 answers

Google Play Billing (testing mode): why my purchase is automatically canceled

I followed all the best practices from Google Developer Doc: https://developer.android.com/google/play/billing/billing_library_overview I push my App in Beta test mode. All works perfectly, except at each time I do in-app (or subscription) purchase,…
anthony
  • 7,653
  • 8
  • 49
  • 101
14
votes
0 answers

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 Inventory that contained no items that they…
13
votes
2 answers

can't disable re-subscription for android subscription on Play Store

TL;DR Why can our users re-subscribe on Play Store, despite opting-out of this on Google Play console? we are implementing a subscription on our Android app. we have selected the "resubscribe" option to be "not enabled". yet, when we test this by…
13
votes
2 answers

Token that identify the user

I'm developing an android application and I would like some functionality of the application is not free. I have thought to use in-app Billing Version 3 API, so I have defined an "In-App Product" in the developer console. After reading the…
Eduardo
  • 1,169
  • 5
  • 21
  • 56
13
votes
1 answer

Android billing library error

everyone. I just started with in app purchase in my application. It's something new for me. Now I've seen some examples on the net, I found that one project on github was full of errors before I linked the billing library to it. When I did I just…
Mostafa Addam
  • 6,956
  • 4
  • 20
  • 38
12
votes
2 answers

Android In-App Billing: Refunded in-app purchases not cancelled

I'm having a trouble with testing my in-app billing. (using Google Play In-app Billing Version 3 API) Problem: Refunded in-app purchases are still present in the purchase list, which is provided by BillingClient.queryPurchases(). When I tried…
11
votes
3 answers

BillingClient.BillingClientStateListener.onBillingSetupFinished is called multiple times

I tried to write a wrapper for BillingClient v.2.2.0 with Kotlin Coroutines: package com.cantalk.photopose.billing import android.app.Activity import android.content.Context import com.android.billingclient.api.* import…
11
votes
1 answer

Refund customer in-app purchase but BillingClient still indicate user has purchased?

I'm using the following BillingClient. implementation 'com.android.billingclient:billing:1.2.2' Although I have issued refund as bellow But I'm still getting the following respond from BillingClient.queryPurchases { "orderId":…
Cheok Yan Cheng
  • 47,586
  • 132
  • 466
  • 875
11
votes
6 answers

Google in app purchasing get products list

I found the following code from here to get products list from google play store ArrayList skuList = new ArrayList(); skuList.add("premiumUpgrade"); skuList.add("gas"); Bundle querySkus = new Bundle(); querySkus.putStringArrayList(“ITEM_ID_LIST”,…
user1688181
  • 496
  • 1
  • 10
  • 27
10
votes
1 answer

Cannot resolve method 'of' in 'ImmutableList

Debugging Details: Following tutorial to migrate from Android Billing 4.0 to 5.0 https://developer.android.com/google/play/billing/migrate-gpblv5, specifically in the section "Showing products available to buy" The 'of' in ImmutableList is flagged…
TomV
  • 1,157
  • 1
  • 13
  • 25
10
votes
3 answers

Android crash reports are not showing up in Google play console's ANRs & Crashes report

I'm currently testing Google play's billing library for in-app subscriptions on my android app. I've created the subscriptions and have released my app to the internal test track. However, when I try going through my billing flow, my app is crashing…
1
2
3
31 32