Apple iOS Inapp purchase Server to Server Notifications' 'Cancel' notification cases?

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:


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.

Replies

While the documents indicate that an upgrade results in a Cancellation_Date (and a cancellation notification) they also state:


"Treat a canceled receipt the same as if no purchase had ever been made"

and the 'cancelation_reason' field is missing an option.


So either

a) this statement is wrong and the cancellation_field is missing an option

or

b) an upgrade does not result in a canceled receipt and the statement ".....or by the App Store when the user upgraded their subscription...... or upgraded" is wrong


In either case, you can expect a receipt and notification indicating the upgrade.