What problem does it solve?
This Skill removes the complexity of implementing, verifying, and maintaining in-app purchases and subscription paywalls on iOS by providing concrete StoreKit 2 patterns, checks, and best practices that prevent common revenue and compliance mistakes.
Core Features & Use Cases
- Product Loading & Display: Guidance for loading Product objects and rendering paywalls with SubscriptionStoreView and StoreView.
- Purchase Flow & Verification: Step-by-step handling of purchase results, verification of transactions, and correct use of transaction.finish().
- Entitlement Management: Patterns for currentEntitlements, Transaction.updates listener, restore/sync flows, and revocation/ refund handling.
- Advanced Scenarios: Offer codes, promotional and win-back offers, introductory offers, family sharing, billing retry and grace periods, server-side JWS validation, and StoreKit testing configuration.
- Compliance & Review Prep: Checklist items to avoid App Store rejections such as restore buttons, clear subscription terms, and proper use of StoreKit APIs.
Quick Start
Start your app with a Transaction.updates listener at launch, load products via Product.products(for:), verify every successful purchase before granting access, and always call transaction.finish() after delivering content.