I am using IAP in my app for non-consumable products.
I am facing the issue to verify the restored purchases of the user.
I understand the concept that when a user purchases something a unique appStoreReceiptURL is saved in the app bundle but it is there as long as the user does not un-install the app and I am also setting the status and the transaction id on the server. Now when the user has purchased something on one device and he has logged into some other device I can get the status from the server and show him the premium content, but what if the user has cancelled the subscription from his Apple ID not from the app? In this case the status key is still set true. I am restoring the purchases whenever the user log in the app but I cannot find a way to validate those purchases.
If anyone knows how to validate those?
Thanks in advance.
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags:
App Store Connect
In-App Purchase
StoreKit
App Store Receipts