implement-in-app-purchases
БесплатноБез исполняемых скриптовНе проверенImplements, configures, and debugs Unity In-App Purchases, including subscriptions, receipt validation, and direct-to-customer payments via Stripe or Coda…
от Unity-Technologies★ 1 342 звезды на GitHubОб этом скилле
Unity In-App Purchasing
Namespace: UnityEngine.Purchasing | Security: UnityEngine.Purchasing.Security
Package: com.unity.purchasing
Unity IAP has its own initialization path via UnityIAPServices.StoreController() → store.Connect(). It does not require UnityServices.InitializeAsync(), but they can coexist if your project uses other UGS services. If Analytics is present and InitializeAsync() is called, IAP will automatically send transaction events.
Important
- Use the unity cli (
unity command --format json) and theunity-cliandunity-pipelineskills for each step. - Before making changes, establish a baseline of the current behavior so you can tell whether a later result is actually caused by your change.
- Create a restore point you can roll back to if your changes fail.
- Do only what's asked. Don't change unrelated assets or files.
- Never leave verification code in the user's script. Never build logging or detection they didn't ask for. See Final step.
- Avoid long explanations.
Before You Start
Always read references/pre-check.md first. It scans the project for third-party IAP packages, native Google Billing, and existing Unity IAP versions, then routes to the correct path. Do not read any other reference file or make any changes until routing is resolved.
Full topic map
Before you go forward with a workflow or diagnosis:
- Open and read the documentation page(s) that cover the specific subject related to what you intend to do or fix and check if you've missed anything.
- Name the file(s) you read in your response.
This is because your training knowledge about Unity might be out of date, incorrect, or for the wrong Unity version.
Prefer WebFetch over WebSearch — faster and lands on the exact reference. Only fetch what you need.
In docs.unity3d.com URLs, replace <VERSION> with the major.minor of com.unity.purchasing in Packages/packages-lock.json before fetching. The IAP manual pages on docs.unity.com aren't versioned, so use those URLs as written.
- Unity In-App Purchasing: overview of the IAP manual and its sections.
- Initialize Unity IAP: install and initialize, with
StoreControllerand D2C (PaymentProvider.Name,RemoteCatalogProvider) samples. - Create your catalog programmatically: define products with
CatalogProviderand store-specific IDs. - Purchases: process pending purchases, confirm them, handle failed confirmations, and determine purchase status.
- Restore purchases: restore behavior on Google Play and Apple platforms.
- Receipt validation: local and server-side validation, and the receipt structure.
- SubscriptionInfo class reference: every
SubscriptionInfomethod and its per-store behavior. - Apple App Store: configure IAP for iOS, macOS and tvOS.
- Use Google Play billing extensions: obfuscated IDs and deferred subscription changes.
- Set up Codeless IAP: the IAP Catalog window, IAP buttons and automatic initialization.
- Upgrade from IAP v4 to v5: the official v4 to v5 API mapping.
- Integrate D2C payment providers workflow: the D2C setup workflow for Stripe and Coda.
- Initiate a purchase: D2C eligibility checks and the Purchase Options UI.
- Deep link success URL example: redirect players back to the app after D2C checkout.
- Test mode for D2C payments: simulate D2C purchases before a provider account is connected.
- Comply with Apple and Google external purchase requirements: compliance checks, checkout URLs and transaction tokens.
- Add a routing rule: choose which payment providers players see.
- Create your Remote Catalog:
.ucatand.catalog.csvcatalog items and deployment.
API reference
The API is UnityEngine.Purchasing, part of the com.unity.purchasing package. It is versioned by package version, not Unity versio
Установить implement-in-app-purchases в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл implement-in-app-purchases?
Implements, configures, and debugs Unity In-App Purchases, including subscriptions, receipt validation, and direct-to-customer payments via Stripe or Coda. Use when asked about real-money purchases or microtransactions, or migrating from native store billing, RevenueCat, Adapty, Essential Kit, or UniPay.
Как установить скилл implement-in-app-purchases?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл implement-in-app-purchases запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic