Repository navigation
feat(billing): Grant paid access for app store purchases - #18
Merged
Merged
Conversation
App Store and Play subscriptions bought through RevenueCat now give the same paid plan as a Stripe subscription, on web and mobile. Billing status reports the active subscription's state rather than the newest one, gives the app the id to log in to RevenueCat with, and links store subscribers to the store to manage their plan. Web checkout is refused while a store subscription is active, so nobody pays twice.
Each RevenueCat product can now grant any plan, so a new plan can be sold in the app by configuration alone. Shared spaces stay web only, since their price depends on the number of members.
Code Review SummaryThe change integrates RevenueCat product-to-plan mappings so app-store subscriptions can grant cloud paid access. Billing status now exposes a store customer ID and, for an entitling store subscription, a management URL; it also prefers active subscriptions over the newest record. Store subscribers are directed to manage their plan in the store, blocked from web checkout, and synced daily when configured. 🚀 Key Improvements
💡 Minor Suggestions
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
App Store and Play subscriptions bought through RevenueCat now give the same paid plan as Stripe, on web and mobile. The mobile app logs in to RevenueCat with
store_customer_idfrom billing status.Billing status now reads the active subscription instead of the newest one, so an expired store subscription no longer hides an active Stripe one. Web checkout answers 409 while a store subscription is active.
Needs
whilesmart/entitlements-revenuecat0.1 andwhilesmart/entitlements-cashier0.4.1 released before deploy.