我已在我的应用中成功实现 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/