【问题标题】:Google Wallet Sandbox - No data sent to postback URLGoogle 电子钱包沙盒 - 没有数据发送到回发 URL
【发布时间】:2014-09-22 18:19:01
【问题描述】:

我正在尝试设置 Google 沙盒支付系统,一切正常,直到 Google 尝试将数据发送到我的系统,然后返回以下警告消息:

Unfortunately, we could not confirm your purchase with the merchant's server. Your order has been canceled. Please contact the merchant if this problem continues.

我看到 Google 试图联系我的服务器:

[22/Sep/2014:14:05:18 -0400] "POST /walletresponse/purchase HTTP/1.1" 301 657 "-" "Google-In-App-Payments; (+http://www.google.com/payments)" 20255

查看 chrome->console->network->preview 我看到了 JWT 令牌,如果手动发送到该站点,它将起作用。关于如何调试的任何想法?

【问题讨论】:

    标签: android-pay


    【解决方案1】:

    您需要调试服务器端并检查您是否是responding correctly to the postback (within 10 seconds)。如果您手动发送,您的服务器的response 是什么?

    重要提示:如果您指定回发 URL,您的服务器必须及时正确地响应 Google 为每笔交易发送的 HTTP POST 消息。否则,交易将被取消。

    回复回传

    您的服务器必须为 Google 发送到您的回发 URL 的每条 HTTP POST 消息发送一个 200 OK 响应。要发送此响应,您的服务器必须:

    1. 解码在 POST 消息的 jwt 参数中指定的 JWT。
    2. 检查以确保订单正常。
    3. 获取 JWT 的“orderId”字段的值。
    4. 发送一个 200 OK 响应,其中只有一个内容:您在第 3 步中获得的“orderId”值。

    第...

    【讨论】:

    • 服务器立即响应 JWT 中包含的 orderId
    • 现在进一步说:抱歉,我们无法处理此请求。请稍后再试。 Google 是否只是在他们的沙盒方面遇到了问题?
    • @user2694306 是的,现在可以确认/重现该沙盒问题:Failed to load resource: the server responded with a status of 503 (Service Unavailable) POST 到 https://sandbox.google.com/checkout/inapp/api/v1/purchase_options
    • @user2694306 - 仅供参考,沙盒现在似乎没问题(回复:503 问题似乎已解决)。
    【解决方案2】:

    Google 的服务器重新上线,现在似乎可以正常工作了

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-04-13
      • 1970-01-01
      • 1970-01-01
      • 2013-06-11
      • 2016-09-09
      • 1970-01-01
      • 2016-06-13
      • 2013-11-28
      相关资源
      最近更新 更多