代码之家  ›  专栏  ›  技术社区  ›  Suvitruf - Andrei Apanasik

(#100)尝试访问节点类型(GamesIAPOrder)上不存在的字段(consume)

  •  0
  • Suvitruf - Andrei Apanasik  · 技术社区  · 6 年前

    Payments Lite .

    采购申请没有任何问题。

    购买清单相同。它返回:

    [
      {
        "purchase_token": "###",
        "product_id": "###",
        "app_id": "###",
        "purchase_time": ###,
        "payment_id": "######",
        "consumed": false,
        "signed_request": "###",
        "payment_action_type": "charge"
      }
    ]
    

    purchase_token 请求返回:

    {
      "error": {
        "message": "(#100) Tried accessing nonexisting field (consume) on node type (GamesIAPOrder)",
        "type": "OAuthException",
        "code": 100,
        "fbtrace_id": "CPjKLsTkf/G
    "
      }
    }
    

    我使用的代码是:

    FB.API("/" + purchaseToken + "/consume", HttpMethod.GET, OnConsume, new Dictionary<string, string> {
         {"access_token", accessToken}
    });
    

    我该怎么解决?

    1 回复  |  直到 6 年前
        1
  •  1
  •   Fredrik Widerberg    6 年前

    消费 purchase_token HttpMethod.POST 而不是 HttpMethod.GET

    https://developers.facebook.com/docs/games_payments/payments_lite#consuming

    推荐文章