Paywall & Subscriptions
Subscriptions and one-time purchases run through RevenueCat. Run /kit-setup-paywall and
the agent makes every code change. You only create a few things in the store and RevenueCat
dashboards.
The paywall's design, text and prices live in the RevenueCat dashboard, not in your code. Change them there and the app picks them up without a new build.
In development
/kit-setup-paywall creates the RevenueCat project and the premium entitlement, saves your
API key, and turns the paywall on. It shows an "empty offerings" screen until the store side
is ready. That's normal.
Before you charge real users
Start early: two steps take days to clear.
- Step 1Create the app in Play Console
Choose Free, even for a paid subscription app. The package name must match your app ID and can't change later.
- Step 2Upload a build to internal testing
/kit-sign-releasedoes it. Play won't let you create products until a build is on a track. Open the tester link on your phone: how Google Play internal testing works. - Step 3Create your products
With gplay,
/kit-setup-paywallcreates them for you. By hand: activate both the subscription and its base plan. - Step 4Connect Play to RevenueCat
/kit-setup-paywallcreates the service account for you. Then wait about 24β36 hours for Google to approve it. - Step 5Import products and publish the paywall
In RevenueCat: import the products, attach them to
premium, add them to the offering, then publish a paywall.
Test with license testers (Play Console β Settings β License testing) so you aren't charged.
- Step 1Create the app in App Store Connect
/kit-publish-to-app-storeand/kit-sign-releaseset this up with you. - Step 2Connect App Store Connect to RevenueCat
/kit-setup-paywallwalks you through adding the keys RevenueCat needs. - Step 3Create your products
/kit-setup-paywallcreates them in App Store Connect throughasc, after you confirm the IDs and prices. - Step 4Import products and publish the paywall
In RevenueCat: import the products, attach them to
premium, add them to the offering, then publish a paywall.
Test in a TestFlight build with a sandbox account so you aren't charged.
Product IDs are permanent. Once premium_monthly exists, that ID is taken forever, even
if you delete the product. The kit shows you every ID and price and waits for your yes first.
Settings in your code
The setup command writes all of these. You rarely touch them.
| Setting | What it does |
|---|---|
PAYWALL_ENABLED | Turns the paywall on or off. A free app turns it off. |
PAYWALL_MODE | Always SOFT: users can skip the paywall and use the free app. |
ENTITLEMENT_ID | The RevenueCat entitlement that marks a paid user. Default premium. |
Settings also gets a Subscription screen where subscribers manage, cancel or restore, and free users can upgrade.
Common problems
| Problem | Fix |
|---|---|
| "Offerings empty" | No build on a test track yet, the tester link wasn't opened, or the offering isn't published. Normal in local development. |
| Purchase works but nothing unlocks | The product isn't attached to the premium entitlement, or the store connection is still being approved. |
| Paywall looks plain | Create and publish a paywall in RevenueCat β Paywalls. |
| API key error on launch | Re-run /kit-setup-paywall. |
Need prices and what to lock first? Run /kit-plan-monetization.