whop-migrate
Installation
SKILL.md
Whop Migrate
Two jobs: moving an existing integration from Stripe or another processor onto Whop, and upgrading code written against older Whop APIs to the current names.
Before you start
- Fetch
https://docs.whop.com/developer/api/migrate-from-previous-versions.mdandhttps://docs.whop.com/api-reference/stability.md. 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. - Find out which job this is: payment code from another processor, old Whop code, or both. Look before asking: the scans below answer it.
- Set up a sandbox client first (
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). Migrate and test againsthttps://sandbox-api.whop.com/api/v1before touching production. - Check the installed
@whop/sdkversion. Every name in this skill was checked against 2.7.0; on another version, confirm a name in the package'sreference.mdbefore using it. - Other
whop-*skills named here are optional. When one isn't installed, use the matching guide linked fromhttps://docs.whop.com/developer/start.mdinstead.