相关疑难解决方法(0)

How to test In App Subscription in android

I've integrated In app purchase api(v3) in my existing app successfully. I've also created in app subscription in google play and added subscription id in code. In Google developer website i've read that to test in app purchase we need to add email id's in Settings section. So i've added test email id's there and saved it(please see the attached image). Then i've purchased the subscription successfully but money got deducted from my google wallet account. Is there any thing …

android in-app-purchase in-app-billing google-play

9
推荐指数
2
解决办法
3970
查看次数

无法测试应用程序订阅

我找不到通过谷歌测试InApp订阅测试产品ID的方法private final String productID = "android.test.purchased"; // Test Product ID by Google

文档中,没有任何地方写入InAPP订阅无法使用测试产品进行测试,也没有在任何地方提及,如何测试InApp订阅.

我已按照文档(InAppV3)实现了我的代码.

医生说:

实施订阅:启动订阅的购买流程类似于启动产品的购买流程,但产品类型必须设置为"subs".购买结果将传递到您的Activity的onActivityResult方法,与应用内商品的情况完全相同.

我也正确地实施了这一点.

我的应用程序正在工作,如果我用"subs"替换"inapp",即它适用于产品而不是订阅.

当我将"inapp"更改为"subs"时,购买将返回:

09-24 14:01:12.943: I/(16929): isBillingSupported() - success : return 0
09-24 14:01:12.943: D/Finsky(2598): [281] InAppBillingUtils.getPreferredAccount: com.kgandroid.inappsubscriptiondemo: Account from first account - [MOn42QuZgF98vxJi0p3wAN3rfzQ]
09-24 14:01:12.943: I/(16929): getPurchases() - success return Bundle
09-24 14:01:12.943: I/(16929): getPurchases() - "RESPONSE_CODE" return 0
09-24 14:01:12.943: I/(16929): getPurchases() - "INAPP_PURCHASE_ITEM_LIST" return []
09-24 …
Run Code Online (Sandbox Code Playgroud)

android in-app-purchase in-app-subscription

3
推荐指数
1
解决办法
2038
查看次数