Features
Subscriptions
Gate your app behind a subscription or one-time purchase
Setup your access pass on the dashboard.
- Go to the your app’s dashboard.
- Select the access passes tab and create an access pass. Give it a name like “My App Premium”
- Create a pricing plan for the access pass by clicking the “Add Pricing” button from the table row.
- After creating the pricing plan, copy the plan id from the 3 dot menu in the pricing plan card.
- Also copy the access pass id from the 3 dot menu in the access pass table row.
We recommend storing the access pass id and plan id in environment variables for your app. Eg:
Check if users have access
When a user makes a request to your app, you can easily check if they have access using the whop api.
If a user does not have access, you can prompt them to purchase or show a lite “free” version of the app to upsell them.
Collect payment from users
This function requires the iFrame SDK to be initialized. See iFrame Overview for more information.
Use the iframe sdk to collect payment from users. This will show a whop native payment modal in which the user can confirm their purchase.