in-app-billing

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

Is there a way to add extra data when purchasing using Inapp purchases

自闭症网瘾萝莉.ら 提交于 2020-07-10 08:39:06
问题 Here is a scenerio , We have multiple teachers on our app . User can purchase 3 different items from teacher which costs $20, $30, $40 . So I created 3 products in google play console . When user purchases some item how can I know from which teacher he purchased the item from ? I don't see any way to set extra data when purchasing the item . How people generally handles these cases ? This is the method I use to launch payment screen fun buyAnItem(activity:Activity,skuDetails: SkuDetails) {