【发布时间】:2012-07-04 21:07:34
【问题描述】:
如何测试 Google Play Android 订阅和 Google API?
- 应用已上传,但未发布。
- APK 已激活。
- 订阅产品 ID 已发布。
- 我尝试在完全不相关的手机上购买订阅,而不是我的帐户。
- 我测试的所有帐户都列在 Android 开发者控制台 > 编辑配置文件中
- BILLING_REQUEST_ITEM_TYPE 设置为“subs”。
- BILLING_REQUEST_API_VERSION 设置为 2。
-
应用程序已签名并发布版本,
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."
我无法测试 Google Android Publisher Web API,https://developers.google.com/android-publisher/v1/purchases/get
IGNORE THIS: It requires a user subscription token but I can't get a token without buying a subscription!
好吧,它开始起作用了,我可以购买订阅。但是,我在服务器上的脚本中存在错误,因此我无法保存用户订阅令牌。现在,当我尝试重新购买订阅时,它会显示“您已经拥有此订阅”。
当我点击详细信息时,它显示“找不到项目”。带有重试按钮!
我觉得我是世界上唯一一个尝试使用这个 API 的人!
此外,Google 结算 API 中存在错误。在收到服务器确认订阅已保存但我在商家帐户中看到费用/存款后,我才致电 mBillingService.confirmNotifications()。
【问题讨论】:
标签: android google-api google-play