Skip to content

feat(billing): Grant paid access for app store purchases - #18

Merged
nfebe merged 2 commits into
mainfrom
feat/revenuecat-access
Nov 29, 2026
Merged

nfebe merged 2 commits into
mainfrom
feat/revenuecat-access

Conversation

@nfebe

@nfebe nfebe commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

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_id from 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-revenuecat 0.1 and whilesmart/entitlements-cashier 0.4.1 released before deploy.

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.
@nfebe
nfebe merged commit 88bd3d6 into main Nov 29, 2026
1 check passed
@sourceant

sourceant Bot commented Dec 2, 2026

Copy link
Copy Markdown

Code Review Summary

The 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

  • App-store subscriptions can receive the configured cloud plan's paid entitlements.
  • An expired store subscription no longer takes precedence over an active Stripe subscription in billing status.
  • Store subscribers can open their subscription management page and cannot purchase again through web checkout.

💡 Minor Suggestions

  • Review coverage is incomplete. Inspect the execution details before approving.

@sourceant sourceant Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review complete. See the overview comment for a summary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant