【问题标题】:Error message "wrong application" is displayed when I call the API for verifying the purchase token. How do I resolve this?调用API验证购买令牌时,显示错误消息“错误的应用程序”。我该如何解决这个问题?
【发布时间】:2021-05-12 10:07:33
【问题描述】:

我已将华为IAP集成到我的应用中,并参考官方文档调用了{rootUrl}/applications/purchases/tokens/verify API,但报错信息为{"responseCode":"8","re​​sponseMessage":"错误的应用程序“}被退回。(文档链接:https://developer.huawei.com/consumer/en/doc/development/HMSCore-References-V5/api-order-verify-purchase-token-0000001050746113-V5

【问题讨论】:

    标签: android kotlin in-app-purchase huawei-mobile-services huawei-iap


    【解决方案1】:

    为尽量减少对私人用户数据(包括订单数据)的访问,华为仅保留用户最近一次购买的产品。一旦用户购买产品并完成支付后,产品发货并调用consumeOwnedPurchase API,订单完成并关闭。 在这种情况下,请勿为较早的订单调用验证 API。否则会报错。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-11-23
      • 2021-07-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多