How to detect a refund of an in-app purchase without refreshing receipt?

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.



Read more here: https://stackoverflow.com/questions/64413671/how-to-detect-a-refund-of-an-in-app-purchase-without-refreshing-receipt

Content Attribution

This content was originally published by Wojciech Kulik at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: