Quickstart
Ten minutes from sign-up to a sandbox purchase.
1. Create a project
Dashboard → Projects → New project → give it your product's name.
2. Add your app
Inside the project: Apps & SDK keys → + Add app.
App Store
- App name and Bundle ID (App Store Connect → your app → App Information).
- In-App Purchase key: App Store Connect → Users and Access → Integrations → In-App Purchase → Generate. Paste the Issuer ID, the Key ID and upload the .p8 file. One key works for every app of your team — add it once, then pick “Use the one from …” for the next apps.
Google Play
- App name and package name.
- Service account JSON key (see Google Play setup).
Web (Stripe) — your Stripe secret key, then the webhook signing secret.
You get the app's SDK key (appl_… / goog_…) and its notification URL.
3. Turn on store notifications
- Apple: App Store Connect → your app → App Information → App Store Server Notifications → paste the URL into Production and Sandbox, choose Version 2.
- Google: create a Pub/Sub push subscription to the URL, then point Play Console's real-time developer notifications at the topic (details).
4. Products, an entitlement, an offering
Product catalog:
- Add each product ID exactly as in the store (e.g.
pro_monthly,pro_yearly). - Add an entitlement, e.g.
pro, that lists them.
Offerings: create default, mark it current, add packages $rc_monthly → pro_monthly, $rc_annual → pro_yearly.
5. A paywall
Paywalls & onboarding → + Paywall → name it → start from a template → set Terms and Privacy links in Style → Publish. On Offerings, attach it to default. Use Preview on phone to try it on your own device first.
6. The SDK
import AppwindPurchases
Purchases.configure(apiKey: "appl_…")
let info = try await Purchases.shared.customerInfo()
if info.entitlements["pro"]?.isActive == true { unlockPro() }
// anywhere you want to sell:
.sheet(isPresented: $showPaywall) { PaywallView() }
Purchases.configure(context, apiKey = "goog_…")
val info = Purchases.shared.customerInfo()
PaywallScreen(activity, onClose = { … }, onPurchased = { … })
await Purchases.configure(PurchasesConfiguration("appl_…"));
final info = await Purchases.getCustomerInfo();
if (info.entitlements.active.containsKey("pro")) unlockPro();
await AppwindUI.presentPaywall();
7. Buy in sandbox
Run on a device signed in with a Sandbox Apple ID (Settings → App Store → Sandbox Account) or a Play license tester. The purchase appears under Customers within seconds. The Setup checklist shows anything still missing.