Prerequisites
- Apple Developer Account
- App created in App Store Connect
- Physical iOS device (simulator can’t test purchases)
1. Create Superwall Account
Sign Up
Go to superwall.com and create an account.
2. Configure API Keys
Update API keys inlib/payments/config.ts:
2.1 Set Payment Provider
Update the feature registry:3. Create Products in App Store Connect
Superwall uses StoreKit to fetch product prices. You need products in App Store Connect.Create Subscription Group
App Store Connect → Your App → Subscriptions → Create Group Example:
“Premium Subscriptions”
Add Subscription Products
Add products to the group: - Product ID:
your_app_monthly_sub -
Price: Set your price - Duration: 1 Month Repeat for yearly, etc.Add Localizations
Each product needs at least one localization: - Display Name: “Monthly
Premium” - Description: “Access all features”
4. Add Products to Superwall
5. Create a Paywall
Add Products
Drag your products onto the paywall. Configure: - Primary product (yearly
recommended) - Secondary product (monthly)
6. Create a Campaign
Campaigns link paywalls to placements.Set Placement
Enter the placement name your app will call: -
campaign_trigger (default
in template) - Or create your own: upgrade_tapped, feature_locked, etc.7. Test
Checklist
Before going live, verify:- API key configured in
config.ts - Products created in App Store Connect
- Products added to Superwall dashboard
- Paywall designed with products
- Campaign created and Active
- Placement name matches code (
campaign_trigger) - Tested on physical device with sandbox account
Next Steps
Remove / Disable
To disable payments while you configure Superwall, set:apps/mobile/features/feature-registry.tsx → featureFlags.payments = false
For production removal guidance, see Removing Features.