【问题标题】:Chrome extension google.payments.inapp.getPurchases failChrome 扩展 google.payments.inapp.getPurchases 失败
【发布时间】:2014-12-20 13:15:42
【问题描述】:

我的 chrome 扩展程序正在实现 google 应用内支付流程以添加功能。目前 getSkuDetails() 和 buy() 都在工作。由于某种原因,getPurchases 方法总是遇到失败方法。在我的 manifest.js 中,我的“web_accessible_resourses”和“https://www.googleapis.com/auth/chromewebstore.readonly”中有“buy.js”脚本,位于权限 >> oauth2 >> 范围内。

作为故障排除步骤,我完成了“buy()”流程并实际购买了该应用程序,以确保默认响应不会命中失败方法。即使在购买后,扩展仍然会遇到失败方法。

对于为什么“getSkuDetails”和“buy()”有效但getPurchases() 无效的原因非常困惑。

【问题讨论】:

    标签: javascript google-chrome-extension in-app-purchase chrome-web-store


    【解决方案1】:

    解决了我自己的问题。即使文档中未指定,您也必须包含 'parameters': {'env': 'prod'} 参数以及成功和失败方法。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-07-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多