【问题标题】:Googleplay purchases.products.acknowledge return 400 not a valid state and 409 cocurrentUpdateGoogle Play purchase.products.acknowledge 返回 400 无效状态和 409 并发更新
【发布时间】:2021-06-18 11:28:02
【问题描述】:

我们尝试通过 purchases.products.acknowledge 使用 golang 在服务器端确认 google play 购买

但是,有时会出现以下错误

googleapi: Error 409: The operation could not be performed since the object was 
already in the process of being updated., concurrentUpdate
googleapi: Error 400: The purchase is not in a valid state to perform the desired operation

我有什么遗漏吗?或者如何解决这些错误?

【问题讨论】:

    标签: google-play in-app-purchase google-play-developer-api


    【解决方案1】:

    根据谷歌支持

    • 对于错误 400,purchaseState 必须为已购买或 0 才能确认购买。更多信息请参考本页:https://developer.android.com/google/play/billing/integrate#process

      错误 400 也可能意味着您已经确认购买。

    • 对于错误 409,这意味着您同时多次确认购买。很遗憾,我们不为 API 并发问题提供支持。

    【讨论】:

      猜你喜欢
      • 2014-03-31
      • 2018-06-26
      • 2016-05-07
      • 2022-06-13
      • 2018-02-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多