Skip to main content
Solved

Web purchase work flow?


Forum|alt.badge.img+5

Can some one outline the workflow process for a subscription purchase on a website then redeeming it on an iOS app, for example unlocking a feature?

 

I understand the purchase on iOS workfow

iOS app initiate purchase > revenuecat > ios appstore to process payment > revenuecat > iOS app to unlock feature

 

What is a web flow look like? , especially one with a stripe payment process? 

I know a user ID will have to be set on a website.

 

Best answer by kaitlin

Hi @Suresh Wickremasinghe ,

The flow would look like this:

web app initiates the purchase > Stripe > web app sends subscription token to RevenueCat > RevenueCat returns with unlocked entitlements

Then, later in the iOS app:

user opens iOS app > logs in > fetches subscription info from RevenueCat

Does this help to clarify? Let me know if you have any questions!

View original
Did this post help you find an answer to your question?

3 replies

kaitlin
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 328 replies
  • Answer
  • January 13, 2023

Hi @Suresh Wickremasinghe ,

The flow would look like this:

web app initiates the purchase > Stripe > web app sends subscription token to RevenueCat > RevenueCat returns with unlocked entitlements

Then, later in the iOS app:

user opens iOS app > logs in > fetches subscription info from RevenueCat

Does this help to clarify? Let me know if you have any questions!


Forum|alt.badge.img+5

Hi @kaitlin Thanks for the info.  This was helpful for the web workflow. Just to confirm, redeeming on an iOS app only requires the users ID correct? Setting and using a user ID/password for their account would require work from a server before revenuecat correct?


kaitlin
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 328 replies
  • January 20, 2023

Hi @Suresh Wickremasinghe

Yes - as long the app user id is the same across both platforms (and is custom/provided, not anonymous), that should be enough to restore on iOS. You can set an app user id for a user when you call configure for the first time at app launch, or by calling .login later in the cycle: https://www.revenuecat.com/docs/user-ids#logging-in-with-a-custom-app-user-id


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings