android-billing

RevenueCat - Service connection is disconnected

时间秒杀一切 提交于 2021-02-11 13:34:23
问题 I am getting the error "SERVICE_DISCONNECTED" on Android Studio when I try to make a purchase with RevenueCat. I've searched everywhere but nothing has worked so far. I followed their quickstart guide and double checked everything but I can't get purchases to work. The following is the full log of the error when I try to purchase: W/BillingClient: Exception while launching billing flow: ; for sku: mysku; try to reconnect W/[Purchases] - INFO: Error updating purchases. DebugMessage: Service

RevenueCat - Service connection is disconnected

自闭症网瘾萝莉.ら 提交于 2021-02-11 13:34:14
问题 I am getting the error "SERVICE_DISCONNECTED" on Android Studio when I try to make a purchase with RevenueCat. I've searched everywhere but nothing has worked so far. I followed their quickstart guide and double checked everything but I can't get purchases to work. The following is the full log of the error when I try to purchase: W/BillingClient: Exception while launching billing flow: ; for sku: mysku; try to reconnect W/[Purchases] - INFO: Error updating purchases. DebugMessage: Service

Open this app to confirm your subscription before Jun 23, 2020

走远了吗. 提交于 2021-01-24 07:52:22
问题 Open this app to confirm your subscription before Jun 23, 2020. What is causing this? 回答1: PurchaseResult was returning my purchases with acknowledge as false. Using the following code, managed to fix the issue. for (Purchase purchase: purchasesResult.getPurchasesList()) { AcknowledgePurchaseParams acknowledgePurchaseParams = AcknowledgePurchaseParams.newBuilder() .setPurchaseToken(purchase.getPurchaseToken()) .build(); acknowledgePurchaseParams.getDeveloperPayload();

What is maximum purchaseToken length provided by google after in app purchases in android?

跟風遠走 提交于 2021-01-04 06:09:28
问题 Can anyone tell me the exact length of purchaseToken provided by google after successfull in app purchase in andorid. 回答1: This token is an opaque character sequence that may be up to 1,000 characters long. 来源: https://stackoverflow.com/questions/44516501/what-is-maximum-purchasetoken-length-provided-by-google-after-in-app-purchases-i

What is maximum purchaseToken length provided by google after in app purchases in android?

巧了我就是萌 提交于 2021-01-04 06:06:10
问题 Can anyone tell me the exact length of purchaseToken provided by google after successfull in app purchase in andorid. 回答1: This token is an opaque character sequence that may be up to 1,000 characters long. 来源: https://stackoverflow.com/questions/44516501/what-is-maximum-purchasetoken-length-provided-by-google-after-in-app-purchases-i

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

我是研究僧i 提交于 2020-08-26 10:31:22
问题 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 purchase, I can never test purchase the same non consumable product again. I've followed the testing recommendations here: https://developer.android.com/google/play/billing/test. I've cancelled/refunded the test purchase as outlined here: https://support

Implement Google Play Billing Library version 2

烂漫一生 提交于 2020-07-17 02:59:56
问题 Google published a brand new version to handle the payments in Android but after searching quite a while I cannot find a single example or tutorial from someone who succeeded implementing it. The documentation is very short and provides only a part of the necessary code: https://developer.android.com/google/play/billing/billing_library_overview The only sample provided is made with Kotlin: https://github.com/android/play-billing-samples Seems like they forgot about Java developers... Does

Why Android BillingClient v2 slow credit card test never cancels?

ぐ巨炮叔叔 提交于 2020-07-03 02:15:22
问题 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 after a few minutes" the purchase state is always pending (Waited for hours after it shows as canceled on Play Console). In order to retrieve purchae status, I am calling to mBillingClient.queryPurchases(BillingClient.SkuType.INAPP) as states in the

Google Play Billing method “queryPurchaseHistoryAsync” not getting all purchases

断了今生、忘了曾经 提交于 2020-03-26 05:34:30
问题 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 documentation says. And also the purchases I get are not the lasts of each SKU type. Did anyone have this issue? It's giving me problems with grace period as I don't get the last purchase I did so I don't get the updated expiry time. I checked Google