Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Implements StoreKit 2 in-app purchases, subscriptions, paywalls, entitlement checks, and StoreKit testing for Swift apps.
Use this skill ↓86% 86%0 ptsof test cases passed
Passed 19 of 22 test cases with the skill, and 19 of 22 without it.
3 of 3 safety checks passed
Implement in-app purchases, subscriptions, paywalls, and StoreKit testing using
StoreKit 2. Use the modern Swift-based Product, Transaction,
PurchaseAction, StoreView, and SubscriptionStoreView APIs. Avoid original
In-App Purchase APIs (SKProduct, SKPaymentQueue) unless legacy OS support
requires them.
StoreKit views initiate purchases automatically. For custom controls, use
PurchaseAction in SwiftUI, purchase(confirmIn:options:) in UIKit/AppKit, and
product.purchase(options:) on watchOS.
| Type | Enum Case | Behavior |
|---|---|---|
| Consumable | .consumable | Used once, can be repurchased (gems, coins) |
| Non-consumable | .nonConsumable | Purchased once permanently (premium unlock) |
| Auto-renewable | .autoRenewable | Recurring billing with automatic renewal |
| Non-renewing | .nonRenewing | Time-limited access without automatic renewal |
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.