How to Provision Features to User who Purchased Subscription through App Store

Hello,

My app has subscriptions a user can purchase. There are n tiers, and when they pick one and pay, the app exposes additional functionality. These subscriptions are all handled within the app itself. I use Stripe to handle payments.

Well, recently I submitted my app for review, and it got rejected. The reason being that since I offer subscriptions in the app, I have to also offer them through the app store.

I have gone through the entire process of setting this up to support in app subscription purchases. But one thing I am confused about is how to determine the user I am supposed to provision features to.

The app store server notification doesn't provide any user details. The verify receipt api does not either.

Basically, all apple tells me is someone purchased this subscription. As far as I can tell, they don't say who. How do I handle this?

Another issue is, what if the user has not created an account with us yet but they try to purchase the subscription through the app store. How do I handle this?

Or, what if they did create an account, but it's not associated to their apple account?

A bit more context. Our users can either create an account and log in directly through our service, through google, or through apple.

Thanks!

How to Provision Features to User who Purchased Subscription through App Store
 
 
Q