{"slug":"in-app-purchases","title":"In-app purchases","summary":"Save a RevenueCat v2 secret key. The assistant discovers the project, its apps, and their public SDK keys, then wires subscriptions into the app.","body":"Add the iOS and Android apps to the RevenueCat project first. Their public SDK keys are picked up from the secret key, so you do not copy them by hand.\n\n## Create the key\n\n1. In RevenueCat, open **Project settings**, then **API keys**, and choose **New** under Secret API keys.\n2. Choose version **V2**.\n3. Set **Project configuration** to Read & write, and **Customer information** to Read.\n4. Generate the key. It starts with `sk_`. Paste it under Connections, on the **In-app purchases** tab.\n\n## What happens next\n\nThe assistant can list the project and its apps, write the public SDK keys into `.env`, and set up the entitlement, products, and offering. The secret key stays in Connections.\n\n```\nRevenueCat is connected. Add a Pro monthly subscription. Free members can\nbrowse; booking a class needs Pro. Show a paywall when they try.\n```\n\n## What still happens in the stores\n\nStore products are created in App Store Connect and Google Play Console. RevenueCat is how the app reads what the customer bought. Test purchases need a device build, because the browser preview cannot run the purchase SDK.","sectionSlug":"connect","sectionTitle":"Connect services","updatedAt":"2026-09-23T22:51:25.250Z","previous":{"slug":"your-api","title":"Your own API"},"next":{"slug":"secrets","title":"API keys and secrets"}}