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.

  1. 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.

  2. Step 2Upload a build to internal testing

    /kit-sign-release does 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.

  3. Step 3Create your products

    With gplay, /kit-setup-paywall creates them for you. By hand: activate both the subscription and its base plan.

  4. Step 4Connect Play to RevenueCat

    /kit-setup-paywall creates the service account for you. Then wait about 24–36 hours for Google to approve it.

  5. 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.

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.

SettingWhat it does
PAYWALL_ENABLEDTurns the paywall on or off. A free app turns it off.
PAYWALL_MODEAlways SOFT: users can skip the paywall and use the free app.
ENTITLEMENT_IDThe 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

ProblemFix
"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 unlocksThe product isn't attached to the premium entitlement, or the store connection is still being approved.
Paywall looks plainCreate and publish a paywall in RevenueCat β†’ Paywalls.
API key error on launchRe-run /kit-setup-paywall.

Need prices and what to lock first? Run /kit-plan-monetization.