gpt4 book ai didi

iOS收据不包含 repo 交易

转载 作者:塔克拉玛干 更新时间:2023-11-02 09:26:16 26 4
gpt4 key购买 nike

如果我删除我的应用程序中的数据,然后重新购买一些我知道该帐户已经拥有的托管 IAP,iOS 会给我原生的“您确定要重新购买该项目吗?您不会被收取费用”对话框。这符合预期。

当购买返回到我的应用程序时,我会收到带有 [[NSBundle mainBundle] appStoreReceiptURL] 的收据。然后我尝试通过我的服务器使用收据验证 SKPaymentTransaction 的 transactionIdentifier。

但是这个 IAP 的收据交易 ID 与 SKPaymentTransaction 不同,因为我早就购买了它。

我应该如何验证这是一次有效的 repo ?我能以某种方式获得这次 repo 的签名收据吗?

最佳答案

所有购买都将在一张收据中。您必须在那里检查所有 iAP 并寻找需要的 iAP。

如果要原始iAP交易的id,有Original Transaction Identifier

For a transaction that restores a previous transaction, the transaction identifier of the original transaction. Otherwise, identical to the transaction identifier.

有关收据字段的更多信息在这里:https://developer.apple.com/library/prerelease/ios/releasenotes/General/ValidateAppStoreReceipt/Chapters/ReceiptFields.html

无论如何,这是原始购买还是 repo 真的很重要吗?我对此的检查通常是相同的。

关于iOS收据不包含 repo 交易,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29748866/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com