I have a multi-platform SaaS (Software as a Service) for iOS, Android, and web.
Purchase Services
Web: Stripe
iOS: Appstore IAP
Android: Google Play IAP
All purchases are connected to RevenueCat.
As far as I can tell, there is no library for web developers to access information, only a REST API.
How are websites checking if a user is a entitled/paying member?
My current plan for implementation is as follows:
- Get Subscriber via Rest AI
- Check the resulting object’s `subscriber.entitlementsm‘my-entitlement-id’]`
- paying/subscribed if exists & if `expires_date` > `current_date`
Question 1: Is this the best method to achieve this OR is there a web SDK somewhere?
Question 2: How often should I poll for subscription information?
- Should I hit the database every time they navigate to a new membership page?
- Should I cache the membership information for a specific amount of time (somehow?)