I don't know how Apple expects us to verify that the code that handles server-to-server notifications is working correctly. I can't think of how to test that the full cycle of operation is correct, because I don't want to test the code directly in production, and in the sandbox not all notifications are handled.
For example, I don't know how to simulate that a user asks AppleCare to revoke a subscription.
On the other hand, in the test purchases I have made I have received DID_RECOVER notifications, which are not supposed to be available (as indicated in https://developer.apple.com/documentation/appstoreservernotifications/notification_type#3694879 ), but also the DID_RECOVER is not preceded by a notification of failure to charge (DID_FAIL_TO_RENEW).
Does anyone have any suggestions on how to test?
Thank you very much,
Oscar
For example, I don't know how to simulate that a user asks AppleCare to revoke a subscription.
On the other hand, in the test purchases I have made I have received DID_RECOVER notifications, which are not supposed to be available (as indicated in https://developer.apple.com/documentation/appstoreservernotifications/notification_type#3694879 ), but also the DID_RECOVER is not preceded by a notification of failure to charge (DID_FAIL_TO_RENEW).
Does anyone have any suggestions on how to test?
Thank you very much,
Oscar