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 an API Key with the
iap:read permission from the Whop Developer Settings.- Go to Whop Developer Settings
- Create a new app or select an existing one
- Generate an API Key with only the
iap:readpermission
The
iap:read permission is designed for client-side use. It’s safe to include in your iOS app because it only grants access to IAP operations.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_)
Quick Start
Once configured, accepting payments is just a few lines of code:Get Started
Follow the setup guide to install and configure the SDK
How It Works
Create an API key
Generate an API key with only the
iap:read permission in your Whop
Developer Settings.Features
| Feature | Description |
|---|---|
| Lower fees | Whop charges 2.7% + $0.30 in the US vs Apple’s 15-30% App Store fees |
| Smart routing | Automatically uses Whop checkout in the US, StoreKit elsewhere |
| Apple Pay | Native Apple Pay support for service-based apps via PassKit |
| Zero backend | No server required—configure with just an API key |
| 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
Install 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.10+

