检测用户是否退还了应用程序购买项目中的“消耗品"(应用程序购买系统中的Apple应用程序商店) [英] Detect if a user refunded a 'consumable' in app purchase item (Apple app store in app purchase system)

查看:123
本文介绍了检测用户是否退还了应用程序购买项目中的“消耗品"(应用程序购买系统中的Apple应用程序商店)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

到目前为止,我在线上阅读的内容是,检测用户是否取消了应用内购买的唯一方法是使用我从用户的iPhone获得的收据数据,并检查该商品中是否存在cancel_date,但是到目前为止据我所知,此字段只能在自动续订的订阅项目中找到.

I read so far online that the only way to detect if a user cancelled an in app purchase is by using the receipt data that I get from the user's iPhone and check if the cancellation_date exists in there for that item, but as far as I know, this field is only to be found on auto-renewable subscription items.

(至少在我发现自己在应用购买中谈论的每一篇帖子的在线阅读内容中,根本没有提及消耗品.)

(At least to what I read online on every post I found that talks about in app purchase, no mention to consumables at all.)

因为它们始终存储在收据数据中,而易耗品则存储在收据数据中,直到应用程序本身完成交易为止,一旦完成,该商品的购买交易将永远从收据数据中消失.在iPhone上完成过程.

Because they are always stored in the receipt data, while consumable items, are stored in the receipt data until the app itself finishes the transaction, once thats done, the purchase transaction for that item is gone forever from the receipt data after the finish process on the iPhone.

所以我的问题是,如果用户要求从Apple取消应用内购买(这是一种消耗品),我是否还会在收据数据中带有canceling_date字段的情况下取回同一项目交易?

So my question is, if a user requested to cancel an in app purchase from Apple, which is a consumable item, do I also get back that same item transaction in the receipt data WITH the cancellation_date field in it?

我从未见过任何人确认这一点.

I've never seen anyone confirm this.

如果有人可以提供其中带有cancelation_date示例的收据数据库base64字符串(如果这样做是合法的话),那就太好了.

It would be nice if someone can provide a receipt-data base64 string with cancellation_date example in it (if that's legal to do tho).

推荐答案

https ://developer.apple.com/documentation/storekit/in-app_purchase/handling_refund_notifications 苹果终于在2020年提供了解决方案!

https://developer.apple.com/documentation/storekit/in-app_purchase/handling_refund_notifications Apple has provided a solution finally in 2020!!

这篇关于检测用户是否退还了应用程序购买项目中的“消耗品"(应用程序购买系统中的Apple应用程序商店)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆