Could a service like RevenueCat help you do this without a server?
How do you disable IAPs and subscriptions that have been refunded without a server?
With StoreKit2 (iOS 15+) your app can get updates without the need of a server for updates such as refunded transactions.