【问题标题】:Google play InAppProduct API get returns 400Google play InAppProduct API 获取返回 400
【发布时间】:2022-06-13 21:32:48
【问题描述】:

我正在对通过 Android 应用进行的购买进行服务器端验证。为此,我需要打 2 个电话

  1. purchases.subscriptions.get
  2. inappproducts.get

第一次调用购买订阅 API 成功,第二次调用应用内商品 API 失败。直到昨天它都工作正常,然后突然开始失败

谁能告诉我接下来的步骤是什么?我发现this 线程讨论了完全相同的问题,但它几乎有 7 到 8 年的历史,我对此没有任何结论。看起来这可能是谷歌端的一个错误,但我不确定

非常感谢任何帮助

这是我从 API 得到的错误

{
  "code" : 400,
  "errors" : [ {
    "domain" : "global",
    "message" : "Non-existent in-app product",
    "reason" : "badRequest"
  } ],
  "message" : "Non-existent in-app product",
  "status" : "INVALID_ARGUMENT"
}

【问题讨论】:

    标签: google-play google-play-developer-api


    【解决方案1】:

    这是 5 月上一次 Google 结算库更新的限制。

    您可能会在后端使用此 API 来获取一些产品详细信息,因此请小心 — 使订阅可编辑后,如果您尝试获取转换后的订阅信息,您将收到与从该 API 收到的错误类似的错误。 5 月 11 日之后创建的所有新订阅也会发生同样的情况。

    更多详情:https://developer.android.com/google/play/billing/compatibility#managing_subscription_status

    【讨论】:

      猜你喜欢
      • 2018-12-14
      • 1970-01-01
      • 2019-12-25
      • 2014-07-07
      • 2018-02-13
      • 2012-08-21
      • 2013-01-12
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多