gpt4 book ai didi

收据中的 iOS IAP in_app 字段

转载 作者:行者123 更新时间:2023-11-29 00:09:02 25 4
gpt4 key购买 nike

收据中有一个 in_app 字段作为数组。

什么时候返回包含超过 1 个元素的数组?

最新购买的商品的索引是多少?

最佳答案

来自documentation

in_app:

In the JSON file, the value of this key is an array containing all in-app purchase receipts based on the in-app purchase transactions present in the input base-64 receipt-data. For receipts containing auto-renewable subscriptions, check the value of the latest_receipt_info key to get the status of the most recent renewal.

The in-app purchase receipt for a non-consumable product, auto-renewable subscription, non-renewing subscription, or free subscription remains in the receipt indefinitely.

因此,如果您有自动续订订阅或用户购买了多个非消耗性或非续订订阅项目,您可以预期该数组会随着时间的推移而增长。

对于自动续订订阅,最近续订的详细信息在 latest_receipt_info 键中。

虽然没有记录,但从观察来看,数组中的最后一项似乎是最近购买的,但您应该检查 purchase_date 字段以确定。

关于收据中的 iOS IAP in_app 字段,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47131027/

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