In-App Purchase Sequence (App Store / Play via RevenueCat)

In-App Purchase Sequence (App Store / Play via RevenueCat) A sequence diagram generated by Archify. GET /api/config/features Any error returnsparentId: null, cached 5min user.parent_id logIn(parentId) Errors swallowed alias anonymous -> parent tap Subscribe GET plans + billing-route provider = revenuecat purchaseViaRevenueCat Refuses missing parentId;duplicate guard readscached customer first purchaseStoreProduct logIn(appUserId) runsright before transaction outcome: purchased receipt + syncPurchases webhook INITIAL_PURCHASE Anonymous app_user_id:acked, nothing stored poll GET /subscription/status Every 2 s, up to 180 s membership active unlock / or 'unconfirmed' 1. Identity (on sign-in) 2. Purchase 3. Activation Parent · taps Subscribe · Sequence participant Parent taps Subscribe Paywall · useStartSubscription · Sequence participant Paywall useStartSubscription RC Gateway · revenuecat-gateway.ts · Sequence participant RC Gateway revenuecat-gateway.ts App Store / Play · native sheet · Sequence participant App Store / Play native sheet RevenueCat · customer + webhooks · Sequence participant RevenueCat customer + webhooks core-service · FastAPI · Sequence participant core-service FastAPI Legend main request return security async trace message