The iOS WhopIAP SDK is coming soon. This documentation is a preview.
Before You Begin
Make sure you have the following ready before starting:1. Whop developer account with API credentials
1. Whop developer account with API credentials
You’ll need your App ID and API Key from the Whop Developer Settings.
- Go to Whop Developer Settings
- Create a new app or select an existing one
- Copy your App ID (starts with
app_) - Generate an API Key and store it securely
2. A product with at least one plan
2. A product with at least one plan
Create a product and plan in your Whop Dashboard:
- Go to your Whop Dashboard
- Navigate to Products and create a product (or use an existing one)
- Add at least one Plan with pricing (subscription or one-time)
- Note your Product ID (starts with
prod_) and Plan ID (starts withplan_)
3. Backend with Whop SDK installed
3. Backend with Whop SDK installed
Your backend needs the Whop SDK to generate access tokens:
- Node.js
- Python
Quick Start
Once configured, accepting payments is just a few lines of code:Get Started
Follow the setup guide to install the SDK and configure your backend
How It Works
1
Configure your backend
Create an endpoint that generates Whop access tokens with the
iap:client scope.2
Initialize the SDK
Pass your company ID, product IDs, and token provider to
configure().3
Check membership status
Use
isSubscribed() or hasAccess(to:) to gate premium content.4
Present checkout
Call
purchase() to display a payment sheet. The SDK handles the rest.Features
| Feature | Description |
|---|---|
| Lower fees | 2.9% + $0.30 vs Apple’s 15-30% |
| Subscriptions & one-time | Support for recurring and single payments |
| Guest purchases | Users can buy before creating an account |
| Cross-device sync | Memberships sync when users log in |
| SwiftUI native | Built with @Observable for seamless integration |
Guides
Setup
Configure your backend and initialize the SDK
Purchasing
Display plans and handle the checkout flow
User Management
Handle login, logout, and membership checking
Requirements
- iOS 17.0+
- Xcode 15.0+
- Swift 5.9+

