android - Google Play - 确认订阅的购买 token 时出现错误 "subscriptionNotOwnedByUser"

标签 android in-app-subscription

在使用 Google 的开发人员 API 进行服务器端订阅验证确认订阅升级/降级时,不断收到来自 Google 的错误“subscriptionNotOwnedByUser”。

购买 token 是直接从 Google 的实时开发者通知收到的通知中提取的。尝试搜索此错误但没有运气。

谢谢你的帮助。

错误信息:

{
  "error": {
    "errors": [
      {
        "domain": "androidpublisher",
        "reason": "subscriptionNotOwnedByUser",
        "message": "The subscription purchase not is owned by the user.",
      }
    ],
    "code": 400,
    "message": "The subscription purchase not is owned by the user."
  }
}

最佳答案

订阅自动续订时,您无需再次确认。因为在订阅购买时已经确认了相同的购买 token 。因此,当您确认已确认的订阅时,您将收到此错误。

在我的案例中,我遇到了同样的错误,所以我在续订时删除了确认部分。

关于android - Google Play - 确认订阅的购买 token 时出现错误 "subscriptionNotOwnedByUser",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57919134/

相关文章:

Android:如何从 RecyclerViewHolder 访问工具栏?

android - 向 Appcompat 操作栏弹出菜单添加边距

android - 如何在我的应用程序中嵌入网站

swift - 从应用内打开 Apple 的订阅窗口

Android:主动订阅的 Markdown 是否需要用户同意?

android - 微信登录-收不到token

android - 在 Android 中更新应用小部件中的 Intent

in-app-purchase - 在 Firebase、Facebook 和 iTunes Connect 中跟踪订阅 iAP

android - 如何避免向已经使用过应用程序内订阅的用户提供免费试用?