Reputation: 4977
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:
Indicates that the subscription was canceled either by Apple customer support or by the App Store when the user upgraded their subscription. The cancellation_date key contains the date and time when the subscription was canceled or upgraded.
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? 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.
Upvotes: 0
Views: 1080
Reputation: 186
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. 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.
Upvotes: 0
Reputation: 470
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.
Correct. This behavior is due to Sandbox env. 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. The cancellation_date key contains the date and time when the subscription was canceled or upgraded.
Upvotes: 1
Reputation: 5169
You'll only receive a CANCEL
notifications if the subscription was refunded by Apple support. You should expect the INTERACTIVE_RENEWAL
events for upgrades.
Upvotes: 3