Adding subscription model (monthly, annual) to app using in app purchases (apple/andriod)

I need help figuring out how to have a subscription model added to my
app. The entire app will be only available to subscribers but I am not
sure how to go about adding it to my ionic app. Also, I would like to
give out specific discount codes to certain people who will then a small
percent of the subscription if someone signs up using the codes. For
example, I could create a PHILLYD discount code for Phillip Defranco on
YouTube and everytime a subscribers uses the code he or she gets a
discount of the subscription and Phillip Defranco gets a small cut of
the subscription price. Thanks so much in advance :slight_smile:

Hey, I’ve the same issue. Is there any recommandation? Maybe Stripe is the best solution?