是否有 API 可以取消自动续订订阅?
我目前没有使用任何具有应用程序内订阅的应用程序,因此我不确定在执行 应用内可续订订阅。
我假设有一个 API,给定收据 ID 或原始交易 ID,可以从应用程序内取消自动续订订阅。看起来并不存在这个。
我是否遗漏了什么,或者用户是否通过其 iTunes 帐户设置取消了自动续订订阅?这不是开发商的责任吗?
I don't currently use any apps that have an in app subscription, so I am not sure what the UI looks like in iTunes when do an in app renewable subscription.
I assumed there was an api, given a receipt id or original transaction id, to cancel the auto-renewable subscription from within the application. It doesn't look like this exists.
Am I missing something or do users cancel auto-renewable subscription through their iTunes account settings? This just isn't the developer's responsibility?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
没有用于此目的的 API。
取消自动续订订阅的唯一方法是从“设置”>“商店>查看我的帐户>在您的 iPhone 上管理我的订阅。
There is no API for this.
The only way to cancel a auto-renewable subscription is from Settings > Store > View my account > Manage my subscription on you iPhone.
更新(因为现在已经相当老了):没有 API 可以取消自动续订订阅。 Apple 的文档 建议该应用链接到:
Update (as this is fairly old by now): There is no API to cancel an auto-renewable subscription. Apple's documentation suggests that the app links to:
从 iOS 15 开始,有新的 api:
static func showManageSubscriptions(in scene: UIWindowScene)
或者使用 SwiftUI 更容易:
manageSubscriptionsSheet(isPresented:)
文档在这里:
https://developer.apple.com/documentation/storekit/appstore/3803198- showmanagesubscriptions
对于 SwiftUI:
https://developer.apple.com/documentation/swiftui/view/管理订阅表(呈现:)
Starting from iOS 15, there is new api for that:
static func showManageSubscriptions(in scene: UIWindowScene)
or even easier with SwiftUI:
manageSubscriptionsSheet(isPresented:)
Documentation here:
https://developer.apple.com/documentation/storekit/appstore/3803198-showmanagesubscriptions
For SwiftUI:
https://developer.apple.com/documentation/swiftui/view/managesubscriptionssheet(ispresented:)
最近,Apple 推出了名为“状态更新通知”的新服务,该服务本质上是一个简单的 Webhook,当 Apple 服务器上发生某些事件时就会调用该 Webhook。当 Apple 客户支持取消用户的订阅时,这些事件之一可以是“取消”。您设置了一个 Webhook,他们会向您发送一条通知,其中包含有关此事件的详细信息。更多信息请访问:https://help.apple.com/itunes -connect/developer/#/dev0067a330b
我添加这个回复是因为这是苹果最近推出的。
Recently Apple introduced their new service called "Status Update Notifications" which in essence is simple webhook that's being called when certain events occur on Apple servers. One of these events can be "CANCEL" when Apple's customer support cancels user's subscription. You setup a webhook and they send you a notification with details about this event. More information can be found here: https://help.apple.com/itunes-connect/developer/#/dev0067a330b
I added this reply because this is what Apple recently introduced.