Installation
Whop’s iOS SDKs are distributed as separate Swift packages — WhopCheckout for payments and WhopElements for embedded chat and payouts. Install only what you need.
WhopCheckout (In-App Purchases)
The WhopCheckout package handles subscriptions and payments in your app.
Step 1: Add Package Dependency
In Xcode, go to File → Add Package Dependencies…
Enter the package URL:
Step 2: Select Version
Choose the latest version or specify a version range:
- Up to Next Major: Recommended for production
- Exact Version: For stability
Step 3: Create an API key
The SDK requires an API key scoped to the iap:read permission. This permission is designed for client-side use, so the key is safe to embed in your app bundle.
Only grant the iap:read permission. It’s the only permission designed for client-side use and limits the key to in-app purchase operations. Never ship a key with broader permissions inside your app.
Step 4: Import and configure
WhopElements (embedded Chat, Payouts…)
Use WhopElements to embed Whop chat channels in your app.
Step 1: Add Package Dependency
In Xcode, go to File → Add Package Dependencies…
Enter the package URL:
Step 2: Select Version
Choose the latest version or specify a version range.
Step 3: Import and Configure the specific element
Requirements
- iOS 17.0+
- Xcode 15.0+
- Swift 5.10+

