Command Palette

Search for a command to run...

Назад к скиллам
скилл № 39621

mobile-in-app-purchase

Use when the user asks about in-app purchases, subscriptions, StoreKit 2, Google Play Billing, RevenueCat, consumables, restore purchases or server-side…

БесплатноБез исполняемых скриптов
j4flmaoот j4flmao★ 47 звёзд на GitHub

Установить mobile-in-app-purchase в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Mobile In-App Purchase

Purpose

Implement in-app purchases with correct product configuration, purchase flow, receipt validation, subscription management, and restore handling across all mobile platforms.

Agent Protocol

Trigger

User request includes: in-app purchase, IAP, subscription, consumable, StoreKit, Play Billing, receipt validation, restore purchase.

Input Context

  • Platform (iOS, Android, Flutter, React Native)
  • Product types (consumable, non-consumable, subscription)
  • Existing billing integration (StoreKit 2, Play Billing 8+, RevenueCat)

Output Artifact

A markdown document containing product configuration and type selection, purchase flow implementation, receipt validation (client and server-side), subscription management (grace period, billing retry), restore purchases and entitlement verification, and platform-specific StoreKit / Play Billing APIs.

Response Format

Code-first. One code block per platform (Swift, Kotlin, Dart/TS) with full purchase and validation flow. Platform divergence points as bullet list. No preamble. No postamble. No explanations.

Completion Criteria

  • Product types defined (consumable, non-consumable, subscription)
  • Purchase flow implemented for all target platforms
  • Receipt validation configured (client or server-side)
  • Subscription management with grace period handling
  • Restore purchases flow implemented
  • Server-side validation endpoint documented (if applicable)

Max Response Length

4096 tokens

Decision Trees

Product Type Selection

What does the user get?
├── One-time permanent unlock (remove ads, full game)
│   └── Non-consumable (restorable, one purchase forever)
├── Depletable resource (coins, gems, energy, lives)
│   └── Consumable (not restorable, can buy again)
├── Time-limited access (premium tier, cloud storage, streaming)
│   └── Auto-renewable subscription (Apple/Google manage billing)
└── Fixed-duration pass (season pass, event ticket)
    └── Non-renewing subscription (custom expiry, manage yourself)

Receipt Validation Strategy

Does app have own backend server?
├── Yes → Server-side receipt validation
│   ├── iOS: server POST to Apple VerifyReceipt API
│   └── Android: server call Google Play Developer API with OAuth2
├── No backend but cross-platform → RevenueCat (handles server validation)
└── Prototype only → Client-side StoreKit 2 automatic verification

Payment Platform Selection

Target platforms?
├── iOS only → StoreKit 2 (async/await, automatic receipt verification)
├── Android only → Play Billing 8+ (with BillingClient.queryProductDetailsAsync)
├── iOS + Android cross-platform
│   ├── Native per platform → StoreKit 2 + Play Billing 8+ (maximum control)
│   └── Unified cross-platform → RevenueCat Purchases SDK
└── Flutter/React Native
    ├── RevenueCat Flutter/RN SDK (recommended, handles cross-platform)
    └── Platform channels with native StoreKit + Play Billing

Introductory Offer Strategy

User subscribing for first time?
├── Free trial (best conversion, no risk)
│   ├── 3-day, 7-day, 14-day, or 30-day
│   └── Higher LTV products → longer trial
├── Pay-as-you-go introductory price (3 months at 50% off)
│   └── Medium price point, want revenue immediately
├── Pay-up-front introductory price (1 year at 40% off annual)
│   └── Annual subscription, high upfront commitment
└── No introductory offer
    └── Already discounted product, low price point

Subscription Group Strategy (iOS)

Group multiple subscription products:
├── Single tier (one subscription SKU)
│   └── No group needed, just one product
├── Tiered access (Basic, Pro, Enterprise)
│   └── Same group → user can upgrade/downgrade within group
├── Standalone products (Storage 50GB, Storage 200GB)
│   └── One group per product line
└── Content subscriptions (News, Sports, Finance)
    └── Separate groups per content category

Workflow

Step 1: Define Product Types

Type Persistence Restore Use Case
Consumable No No Coins, gems, lives
Non-consumable Yes Yes Remove ads, unlock level
Auto-renewable subscription Yes (while active) Yes Premium tier, cloud storage
Non-renewing subscription Yes (custom duration) Varies Time-limited pass

Step 2: Configure Products in App Store Connect / Play Console

iOS (App Store Connect):

  • Set up product IDs matching App Store Connect identifiers
  • Configure pricing tiers, subscription durations, and introductory offers
  • Enable promotional offers for subscription retention
  • Configure subscription groups for upgrade/downgrade
  • Set up shared secret for receipt validation
  • Add localization for each product name and description
  • Configure family sharing eligibility for non-consumables
  • Set up subscription offer codes for marketing campaigns

Android (Google Play Console):

  • Create products with the same product IDs used in code
  • Confi
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/iap-receipt-validation-server.md
  • references/iap-subscription-lifecycle.md
  • references/in-app-purchase.md
  • references/play-billing-guide.md
  • references/receipt-validation.md
  • references/storekit-guide.md
  • references/subscription-management.md
  • references/subscription-models.md

FAQ

Что делает скилл mobile-in-app-purchase?

Use when the user asks about in-app purchases, subscriptions, StoreKit 2, Google Play Billing, RevenueCat, consumables, restore purchases or server-side receipt and purchase-token validation. Produces purchase flows, entitlement checks and server verification. Not for web payments (use ecommerce-payment-processing).

Как установить скилл mobile-in-app-purchase?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл mobile-in-app-purchase запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить mobile-in-app-purchase с