Google Play - 确认订阅的购买令牌时出现“subscriptionNotOwnedByUser”错误

LHY*_*NIV 7 android in-app-subscription

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

购买令牌直接从 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."
  }
}
Run Code Online (Sandbox Code Playgroud)

Moh*_*raj 6

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

我在我的情况下遇到了同样的错误,因此我在订阅续订时删除了确认部分。