gpt4 book ai didi

IOS - 应用内购买恢复完成的交易

转载 作者:行者123 更新时间:2023-11-28 22:06:24 28 4
gpt4 key购买 nike

我已经多次阅读文档,但仍然不确定如何去做。来自 In App Purchase Programming guide - Restore Purchased Product:

In most cases, all your app needs to do is refresh its receipt and deliver the products in its receipt. The refreshed receipt contains a record of the user’s purchases in this app, on this device or any other device. However, some apps need to take an alternate approach for one of the following reasons:

If you use Apple-hosted content, restoring completed transactions gives your app the transaction objects it uses to download the content.

这是否意味着如果我使用 Apple 托管的内容,我不需要刷新其收据并直接调用restore completed transaction 来检索我以前的下载产品?

最佳答案

你仍然需要这样做。

你引用的文字意思是收据包含用户购买了哪些应用内商品的信息,但收据不包含内容

因此,如果您使用 Apple 托管的内容,则需要一种机制来下载所述内容。刷新收据时不会提供该内容。但是,当您使用各种恢复功能时,它会被下载。

关于IOS - 应用内购买恢复完成的交易,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23874373/

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