我该如何测试Google Play Android订阅和Google API?
- The app is uploaded, but not published.
- The APK is activated.
- The subscription product id is published.
- I tried to purchase subscription on totally unrelated phone, not my account.
- All accounts I tested are listed in Android Developer Console > Edit Profile
- The BILLING_REQUEST_ITEM_TYPE is set to "subs".
- The BILLING_REQUEST_API_VERSION is set to 2.
The app is signed and a release version,
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."
IGNORE THIS: It requires a user subscription token but I can't get a token without buying a subscription!
好的,不知怎么的,一切开始正常工作了,我终于能够订阅了。然而,在我的服务器脚本中出现了错误,导致我无法保存用户订阅令牌。现在,当我尝试重新购买订阅时,它会显示“您已经拥有此订阅”。
当我点击详情时,它显示“未找到该项”,并显示一个重试按钮!
我感觉自己是世界上唯一一个尝试使用这个API的人!
另外,Google计费API也存在错误。在我收到服务器确认订阅已保存之前,我没有调用,但是我在我的商户账户中看到了一笔扣款/存款。
ant release installr
。 - Chloe