Writing
Articles
These notes are about one stack: a React app wrapped with Capacitor, people signing in with Supabase Auth, subscriptions already selling on the web through Stripe, and in-app purchases going through RevenueCat so iPhone and Android unlock the same access.
Paid access drifts when each platform answers “is this person paid?” on its own. A customer subscribes on the web and meets a paywall in the iPhone app. An Android subscription lapses, but the web app still unlocks everything. Refunds, restores and account switches each update a different record. That is usually not a missing button on the paywall. It is a Supabase user, a Stripe customer, and a RevenueCat app user ID — sometimes still anonymous — that have not been attached to one entitlement.
What we write here is the work between those systems: identifying a Supabase user in RevenueCat before you trust entitlements; attaching a Stripe web subscription so it unlocks the Capacitor app; keeping access as a server decision instead of a premium flag on the device; and handling purchase, renewal, cancellation, refund, restore and transfer on one path that is safe to retry.
Five articles so far: why a Stripe subscriber hits a Capacitor paywall; how to map Supabase Auth user IDs to RevenueCat so account switches do not hand premium to the wrong person; which RevenueCat webhook should update paid access after a refund, cancellation, or transfer; how to test those purchases end to end in App Store sandbox and Play internal testing on real devices; and why Play review can say the item could not be found on a paywall that already works for testers. We stay on this stack on purpose. Native Swift or Kotlin, Flutter and React Native apps are outside what we cover, and so are rebuilds or a move to new accounts.
Why Play review says the item you were attempting to purchase could not be found
A paywall that works for license testers can still fail Play review. The error is on Google’s purchase sheet: the reviewer is not a tester, and the product or offer may not be for sale to that account.
Testing subscriptions end to end in App Store sandbox and Play internal testing
A monthly Pro buy on a real iPad is not enough. You also need accelerated renewals, a Play license tester on an internal track, and a RevenueCat dashboard check with sandbox data turned on.
Refunds, transfers, and which webhook actually updates access
There is no REFUND webhook. Cancellations, refunds, pauses, and transfers each mean something different — and you should re-fetch the RevenueCat subscriber before you change the Supabase row.
Mapping Supabase Auth user IDs to RevenueCat without granting the wrong person’s access
Configure once, logIn with user.id, logOut on SIGNED_OUT, alias rules, and Stripe on the same App User ID — so the next person on the phone does not inherit premium.
Why a Stripe subscriber hits a paywall in your Capacitor iPhone app
Someone pays on the web, opens the iPhone app, and meets a paywall. How Stripe, RevenueCat, and Supabase Auth get out of sync — and what to run in sandbox before you trust it.
Capacitor + RevenueCat + Stripe entitlement checklist
A printable, ungated checklist for identity, Stripe sync, entitlements, restores, webhooks, sandbox cases and offline cache — before you trust paid access across platforms.
Capacitor + RevenueCat + Supabase starter repo
A small working reference: logIn with the Supabase user.id, a webhook Edge Function that writes an RLS-protected entitlements table (idempotent, refunds and transfers included), a server-side access check, and notes on attaching Stripe web subscriptions.
Work with us
If paid access already drifts between your web app and your Capacitor app, start with a free fit check or read the fixed-scope prices.