In the news these days, there are many things that Apple may allow sideloading installation from iOS 17.
In that case, it might not be a problem to install only the ipa file of the paid app and install it on someone else's device.
Is Apple currently supporting an API that can check whether a paid app has been purchased? (This is a paid app, not a subscription or in-app purchase.)
If there is such an API, please let me know.