民间, 试图在服务器上验证收据,Apple文档最多也是模糊的。
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
内的对象也不同。
有人可以告诉我他们的经验,以及如何确认收据有效?
答案 0 :(得分:0)
最后一段很可能是最新的收据样式。当你使用旧的。