I'm trying to figure out how to detect refunds of non-consumable in-app purchases. The problem is that the original receipt on the device will not be updated automatically after a refund.
I would need to call each time during app launch
SKReceiptRefreshRequest which may prompt the user for AppleID credentials. Therefore, this solution is not sufficient and not worth it.
Is there any way to send the old receipt to the backend and refresh it there to get
cancellation_date property if exists? Or maybe
https://buy.itunes.apple.com/verifyReceipt does it already? Unfortunately, it is not possible to test it in the sandbox environment as I can't get a refund for the test purchase.