如何测试Google Play Android订阅?
如何测试Google Play Android订阅和Google API如何测试Google Play Android订阅?,android,google-api,google-play,Android,Google Api,Google Play,如何测试Google Play Android订阅和Google API 应用程序已上载,但未发布 APK被激活 订阅产品id已发布 我试图在完全无关的手机上购买订阅,而不是我的帐户 我测试的所有帐户都列在Android开发者控制台>编辑配置文件中 账单请求项目类型设置为“SUB” 计费请求API版本设置为2 该应用程序已签名并具有发布版本,ant release installr IGNORE THIS: When I try to purchase a subscription, it di
ant release installr
IGNORE THIS: When I try to purchase a subscription, it displays the subscription description, but immediately says "The item you are requesting to purchase is not available."
此外,谷歌账单API中还有一个错误。在收到服务器确认订阅已保存之前,我不会调用
mBillingService.confirmNotifications()
,但我在我的商户帐户中看到一笔费用/存款。您是否在测试设备上安装了.apk的签名版本?为了让Google Play确认您的购买请求,需要对.apk进行签名(例如,通过Eclipse中常见的“导出”功能)Yes。我要补充一点。这是一个发布版本,ant release installr
。计费服务是否返回任何logcat错误/信息消息(可能比“您正在请求的项目…”更详细)?当我在手机上尝试时,(我假设Finsky是计费服务(WTF?)D/Finsky:[26]MarketBillingService.getPreferredAccount:com.kizbit.pairfinder:来自第一个帐户的帐户。E/Volley:[14]基本网络。性能请求:W/Finsky:[1]CheckoutPurchase.OneErrorResponse:DisplayErrorMessage[无法处理您的订单。请重试。]E/Finsky:[1]CheckoutPurchase.setError:类型=未知,代码=-1,消息=无法处理您的订单。请再试一次。我也遇到同样的问题。应用程序发布时,整个“未找到项目”问题消失。一旦我取消发布应用程序,此问题就会返回API,API将不允许您两次购买订阅。如果您在成功购买时未能存储购买详细信息(purchaseToken),则必须使用恢复购买机制重新检索这些详细信息。总的来说,我对整个订阅系统感到痛苦,尤其是在测试方面。
IGNORE THIS: It requires a user subscription token but I can't get a token without buying a subscription!