whop-checkout
Installation
SKILL.md
Whop Checkout
Whop prices everything through a variant (one price of a product). The buyer pays on a Whop-hosted page or in Whop Elements on your page, and your server fulfills when the payment.succeeded webhook arrives.
Before you start
- Inspect the project first. Note the installed
@whop/sdkversion (node_modules/@whop/sdk/package.json;whop-sdkin Python,whop_sdkin Ruby), the framework, and whether the client targets sandbox or production. On@whop/apior@whop/sdkbelow 2.0, upgrade first (whop-migrate). If a name here doesn't compile, search the installednode_modules/@whop/sdk/reference.mdfor it and trust that over this skill. - Fetch
https://docs.whop.com/developer/guides/accept-payments.md, plus the guide for the path you pick below. If they disagree with this skill, follow the docs and tell the user (see references/skill-feedback.md). Read the changelog (https://docs.whop.com/developer/api/versioning.md) only when you pin or upgrade a version, or a response doesn't match this skill or the docs. - Confirm the environment. Sandbox (
https://sandbox-api.whop.com/api/v1, dashboard atsandbox.whop.com) supports cards only: no Apple Pay, Google Pay, or Elements yet. Test cards are in references/testing.md. - Get the account ID (
biz_...) and, for an existing price, the variant ID (plan_...; variant IDs keep theplan_prefix). - Server code needs an API key and a client. Set that up with
whop-api. Without that skill: install@whop/sdkand createnew WhopClient({ token: process.env.WHOP_API_KEY, environment: WhopEnvironment.Sandbox })in server-only code, droppingenvironmentfor production (https://docs.whop.com/developer/quickstart.md). - Other
whop-*skills named here are optional. When one isn't installed, use the matching guide linked fromhttps://docs.whop.com/developer/start.mdinstead.