[英]Apple iOS Inapp purchase Server to Server Notifications' 'Cancel' notification cases?
We have been testing In App purchase Server to Server notifications in sandbox environment over and over.我们一直在沙盒环境中反复测试应用内购买服务器到服务器的通知。 Apple's documentation here states for the Cancel type notification that:
Apple 的文档在此处声明了 Cancel 类型通知:
Indicates that the subscription was canceled either by Apple customer support or by the App Store when the user upgraded their subscription .
表示当用户升级订阅时,订阅已被 Apple 客户支持或 App Store取消。 The cancellation_date key contains the date and time when the subscription was canceled or upgraded.
cancel_date 键包含取消或升级订阅的日期和时间。
As per this, we should receive a Cancel
notification when we perform an upgrade of a product from the subscription group but we have been receiving a INTERACTIVE_RENEWAL
instead?根据这一点,当我们从订阅组执行产品升级时,我们应该收到
Cancel
通知,但我们一直在收到INTERACTIVE_RENEWAL
? Is this because we are testing in Sandbox environment.这是因为我们在沙盒环境中进行测试。 Do we get the
CANCEL
in production, and if yes whether we should still expect another INTERACTIVE_RENEWAL
in production as well.我们是否在生产中获得
CANCEL
,如果是,我们是否还应该期待另一个INTERACTIVE_RENEWAL
在生产中。
You'll only receive a CANCEL
notifications if the subscription was refunded by Apple support.如果 Apple 支持已退还订阅,您只会收到
CANCEL
通知。 You should expect the INTERACTIVE_RENEWAL
events for upgrades.您应该期待升级的
INTERACTIVE_RENEWAL
事件。
Is this because we are testing in Sandbox environment.
这是因为我们在沙盒环境中进行测试。 Do we get the CANCEL in production, and if yes whether we should still expect another INTERACTIVE_RENEWAL in production as well.
我们是否在生产中获得了 CANCEL,如果是,我们是否还应该期待另一个 INTERACTIVE_RENEWAL 在生产中。
Correct.正确的。 This behavior is due to Sandbox env.
这种行为是由于 Sandbox 环境造成的。 In Production, you would get both the notification.
在生产中,您将同时收到通知。
From Apple Doc : CANCEL - indicates that the subscription was canceled either by Apple customer support or by the App Store when the user upgraded their subscription.来自 Apple Doc : CANCEL - 表示当用户升级订阅时,订阅已被 Apple 客户支持或 App Store 取消。 The cancellation_date key contains the date and time when the subscription was canceled or upgraded.
cancel_date 键包含取消或升级订阅的日期和时间。
https://developer.apple.com/documentation/storekit/in-app_purchase/enabling_server-to-server_notifications https://developer.apple.com/documentation/storekit/in-app_purchase/enabling_server-to-server_notifications
If you check the documentation for CANCEL
today (20210404) you can see that the CANCEL notification no longer mentions the part that it is sent when there is an upgrade.如果您今天查看
CANCEL
的文档 (20210404),您会发现 CANCEL 通知不再提及升级时发送的部分。 They changed the documentation (and, I suppose, the behaviour too), but they didn't make an explicit mention to that (a changelog, for example), and they don't include modification time for documentation pages.他们更改了文档(我想,也更改了行为),但他们没有明确提及(例如更改日志),并且他们不包括文档页面的修改时间。 So it is very difficult for us, as developers, detect the changes in an easy way.
因此,作为开发人员,我们很难以简单的方式检测更改。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.