【问题标题】:apple receipt validation woes苹果收据验证问题
【发布时间】:2014-10-01 21:57:47
【问题描述】:

各位, 尝试在服务器上验证收据,而 Apple 文档充其量是模糊的。

来自文档最后一段 (https://developer.apple.com/library/ios/releasenotes/General/ValidateAppStoreReceipt/Chapters/ValidateRemotely.html):

The values of the latest_receipt and latest_receipt_info keys are useful when checking whether an auto-renewable subscription is currently active. By providing any transaction receipt for the subscription and checking these values, you can get information about the currently-active subscription period. If the receipt being validated is for the latest renewal, the value for latest_receipt is the same as receipt-data (in the request) and the value for latest_receipt_info is the same as receipt.

我检查手机发送的回执字符串是否与我从苹果返回的data.latest_receipt 匹配,它不匹配!

查看从苹果返回的 JSON 对象时,latest_receipt_info 和 receipt 中的对象也不同。

谁能告诉我他们的经历,如何验证收据是否有效?

【问题讨论】:

标签: ios app-store receipt-validation


【解决方案1】:

最后一段很可能是关于最新收据样式的。当你使用旧的。

【讨论】:

    猜你喜欢
    • 2021-01-10
    • 1970-01-01
    • 2013-11-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-07-06
    • 2011-05-29
    • 1970-01-01
    相关资源
    最近更新 更多