implement-in-app-purchases — Claude Code skill: setup & use
Configures Unity In-App Purchasing v5, handles receipt validation, and guides migrations from native store billing or third-party SDKs.
npx skills add Unity-Technologies/skills --skill implement-in-app-purchases -a claude-codeWhat implement-in-app-purchases does
This skill directs the agent through com.unity.purchasing v5 setup. It prioritizes a preliminary project scan before changing code, which avoids conflicts with existing store implementations, RevenueCat, or UniPay. Store connection runs through UnityIAPServices.StoreController and Connect(). Calling UnityServices.InitializeAsync is not mandatory for IAP, but it runs fine alongside other gaming services.
Purchases follow a strict two-step flow: receive a PendingOrder, grant the item, and trigger ConfirmPurchase. Never skip confirmation. An unconfirmed purchase triggers redelivery on every subsequent application launch. Client-side verification on iOS with StoreKit 2 is a no-op, requiring server-side validation via jwsRepresentation. Integrating direct-to-customer checkouts via Stripe or Coda requires package version 5.4 or higher.
What it helps with
- implement the two-step purchase flow in Unity IAP v5
- migrate billing from RevenueCat or native Google BillingClient
- handle iOS restore transactions for App Store compliance
- set up server-side receipt validation for StoreKit 2
Example prompts for the agent
- Set up Unity IAP v5 initialization and event handling using StoreController.
- Migrate our in-app purchase logic from Adapty to com.unity.purchasing.
- Help me add an iOS purchase restoration flow with ConfirmPurchase.
How to install implement-in-app-purchases
1Skills CLI (Vercel)
npx skills add Unity-Technologies/skills --skill implement-in-app-purchases -a claude-code2Manually: put the files in place
~/.claude/skills/implement-in-app-purchases/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/implement-in-app-purchases/
1Skills CLI (Vercel)
npx skills add Unity-Technologies/skills --skill implement-in-app-purchases -a codex2Manually: put the files in place
.agents/skills/implement-in-app-purchases/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add Unity-Technologies/skills --skill implement-in-app-purchases -a cursor2Manually: put the files in place
.cursor/skills/implement-in-app-purchases/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install Unity-Technologies/skills implement-in-app-purchases2Manually: put the files in place
.github/skills/implement-in-app-purchases/SKILL.md1Skills CLI (Vercel)
npx skills add Unity-Technologies/skills --skill implement-in-app-purchases -a gemini-cli2Platform CLI
gemini skills install https://github.com/Unity-Technologies/skills --path skills/implement-in-app-purchasesManually: put the files in place
.devin/skills/implement-in-app-purchases/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add Unity-Technologies/skills --skill implement-in-app-purchases -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about implement-in-app-purchases
How to install implement-in-app-purchases in Claude Code?
Run npx skills add Unity-Technologies/skills --skill implement-in-app-purchases -a claude-code in your terminal.
What does the implement-in-app-purchases skill do?
It provides architecture patterns for Unity IAP v5, catalog fetching, entitlement tracking, and migrations from native store wrappers or Adapty.
Can I validate iOS receipts locally with StoreKit 2?
Local validation is a no-op under StoreKit 2. You should send order.Info.Apple?.jwsRepresentation to your backend server instead.