【发布时间】:2014-01-19 00:01:33
【问题描述】:
我在Google Developer Console 上为我的 Android 应用创建了一个有效订阅,目前处于草稿模式。我可以从我的测试设备购买订阅,但无法验证 purchaseToken 我从应用程序中获得的服务器上的购买状态 API。我得到:
{
"error": {
"errors": [
{
"domain": "androidpublisher",
"reason": "developerDoesNotOwnApplication",
"message": "This developer account does not own the application."
}
],
"code": 401,
"message": "This developer account does not own the application."
}
}
我关注了Google Play Developer API Guides for authorization flow,所以我知道我正在使用正确的访问令牌。 (我用https://www.googleapis.com/oauth2/v1/tokeninfo 检查了令牌,它的用户是我的客户ID)。所以我认为购买状态 API 无法识别在草稿模式下使用应用程序完成的购买。另外,我在Google Merchant Console 中看不到订单,很可能是因为同样的原因?
有人遇到过类似的问题吗?我在上一段中的假设是否正确?
作为额外信息,应用程序中的getPurchases 会退回有问题的购买,而我的信用卡实际上已被扣款。我正在使用 v3 的应用内结算。
【问题讨论】:
标签: android google-api in-app-billing subscription