Apple如何通知iOS应用程序退还应用程序内购买(IAP)? [英] How does Apple notify iOS apps of refunds of in-app purchases (IAP)?

查看:1312
本文介绍了Apple如何通知iOS应用程序退还应用程序内购买(IAP)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的应用程序中成功实现了Apple iOS IAP并在沙箱中进行了测试。效果很好。

I have Apple iOS IAP successfully implemented in my app and tested in the sandbox. Works great.

我担心用户可以用IAP购买东西,将其下载到我的应用程序中,然后向Apple投诉并获得退款。没有明显的退款方式报告给我的应用程序。它们是否被排除在恢复操作期间收到的产品列表之外?是否有一些未记录的交易类型会在退款时异步显示在我的SKPaymentTransactionObserver中?

I'm concerned that users could buy something with IAP, download it into my app, then complain to Apple and get a refund. There's no obvious way that refunds are reported to my app. Are they simply left out of the list of products I receive during a "restore" operation? Is there some undocumented transaction type that will asynchronously show up in my SKPaymentTransactionObserver when a refund occurs?

现在我的操作假设我需要删除用户的执行还原之前的IAP事务,以及任何已退款的事务都不会出现在已还原的事务列表中。这是正确的方法吗?有什么方法可以在沙盒中测试吗?

Right now I'm operating on the assumption that I need to delete the user's IAP transactions before doing a restore, and that anything refunded will just not be in the list of restored transactions. Is this the right way to do it? Is there any way to test this in the sandbox?

有没有人在生产环境中看到过退款并且可以解释它们是如何工作的?

Has anyone seen refunds in a production environment and can explain how they work?

推荐答案

应用内购买指南讨论了取消订阅的概念。这是我见过的唯一一个讨论这个主题的地方。

The in-app purchasing guide discusses the concept of "cancellation" of subscriptions. This is the only place I've seen discussing the subject.

有关取消日期字段的更多详细信息也可以在App Store收据验证中找到文件。

Further details about the cancellation date field can also be found in the App Store receipt validation documentation.

cancellation_date

解码收据后,您可以获得取消日期,该日期将告诉您以下内容:

After decoding a receipt, you can get the cancellation date which will tell you the following:


对于已被Apple客户支持取消,取消时间和日期。

For a transaction that was canceled by Apple customer support, the time and date of the cancellation.

这篇关于Apple如何通知iOS应用程序退还应用程序内购买(IAP)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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