ios - Apple 如何通知 iOS 应用程序内购买 (IAP) 的退款?

标签 ios in-app-purchase

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

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

现在,我假设我需要在恢复之前删除用户的 IAP 交易,并且任何退款都不会出现在恢复交易的列表中。这是正确的方法吗?有什么方法可以在沙箱中对此进行测试吗?

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

最佳答案

2020 年 6 月 24 日更新:

在 WWDC 2020 上,引入了一个新通知,通知您退款:https://developer.apple.com/documentation/storekit/in-app_purchase/handling_refund_notifications


原答案:

我今天(2018 年 12 月 6 日)收到了 Apple Developer Relations 的回复:

Hello Johannes,

In response to your question, unfortunately, there is no supported means to detect that the user has contacted Apple Care and received a refund for the In-App Purchase of a consumable item. The only option which I can refer you to is to submit an API enhancement request for an API to be made available for an app to detect that a refund was provided to a user of an In-App Purchase. Currently, this support is realistically only available to apps which offer auto-renewable subscription In-App Purchase.

You can submit the enhancement request using the Apple Developer Bug Report web page - http//bugreport.apple.com

As this is an enhancement request type issue, I'm going to arrange for this incident to be unbilled from your account for use on a future issue.

所以我们有它。

关于ios - Apple 如何通知 iOS 应用程序内购买 (IAP) 的退款?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6439482/

相关文章:

ios - 线程阻塞 Objective C

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

javascript - 类型 'boolean' 不可分配给类型 'Promise<boolean>'

android - 如果用户已经在一个平台上购买了同一个应用程序,是否可以避免重新购买该应用程序

iphone - 如何测量 UIImageView 的绘制时间?

ios - 我在 XCode Interface builder 中几乎没有 Controller 选项

ios - 我将如何存储 iphone 应用程序的虚拟硬币数量

ios - 如何在 iphone 上制作闪烁(或闪烁)的光标?

ios - UIWindow 状态栏旋转