【问题标题】:Can I verify the transaction information of in-app billing with the Android Market server directly?是否可以直接通过 Android Market 服务器验证应用内结算的交易信息?
【发布时间】:2011-04-01 08:09:58
【问题描述】:

如果我有交易信息json字符串:

{ "nonce" : 1836535032137741465,
  "orders" :
  { "notificationId" : "android.test.purchased",
    "orderId" : "transactionId.android.test.purchased",
    "packageName" : "com.example.dungeons",
    "productId" : "android.test.purchased",
    "developerPayload" : "bGoa+V7g/yqDXvKRqq+JTFn4uQZbPiQJo4pf9RzJ",
    "purchaseTime" : 1290114783411,
    "purchaseState" : 0
  }
}

我可以将它上传到 Android Market 服务器以验证它是否有效。 就像苹果的方式一样。 http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/StoreKitGuide/VerifyingStoreReceipts/VerifyingStoreReceipts.html

更新: 我正在更新此内容以获取有关此主题的一些信息。

【问题讨论】:

    标签: android in-app-purchase google-play


    【解决方案1】:

    在android中,我们无法直接与Android Market服务器验证应用内结算的交易信息。 而且我认为不需要验证交易,因为它非常安全。(Android 中没有越狱):)。

    【讨论】:

      【解决方案2】:

      抱歉,您无法与 android market 通信。请查看此链接是否还有其他问题

      this

      更新:

      现在您可以使用新版本的 Android Play 验证订阅。请查看this。 这需要 OAuth,因为您正在请求访问 Google 信息的权限。但是,该过程有据可查,您可以自己遵循。

      【讨论】:

        猜你喜欢
        • 2012-01-12
        • 2012-02-25
        • 2012-04-26
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2019-04-19
        • 2017-03-03
        • 2011-06-03
        相关资源
        最近更新 更多