storekit

Implement in-app purchases and subscriptions using StoreKit 2 on iOS.

981|50|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/dpearson2699/swift-ios-skills --skill storekit-dpearson2699
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: storekit
Source: https://github.com/dpearson2699/swift-ios-skills/tree/main/skills/storekit
Command: npx skills add https://github.com/dpearson2699/swift-ios-skills --skill storekit-dpearson2699

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers implement, review, and improve in-app purchases and subscriptions using Apple's StoreKit 2 framework, ensuring a smooth and compliant purchasing experience for users.

Core Features & Use Cases

  • Implement Paywalls: Build modern paywalls using SubscriptionStoreView and ProductView.
  • Process Transactions: Handle purchases, renewals, refunds, and entitlement verification with Product and Transaction APIs.
  • Manage Subscriptions: Implement offer codes, promotional offers, and handle subscription status and renewal logic.
  • Use Case: You are building a new app with a premium subscription tier. Use this Skill to set up the paywall, handle the purchase flow, verify the subscription status, and grant users access to premium features.

Quick Start

Use the storekit skill to implement a paywall using SubscriptionStoreView for a product group ID 'YOUR_GROUP_ID'.

Frequently Asked Questions about storekit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement in-app purchases with StoreKit 2 in SwiftUI?

To implement in-app purchases with StoreKit 2, use the modern Product and Transaction APIs to fetch product information, process purchases, and verify entitlements directly within your SwiftUI application. You can build native purchase interfaces using StoreView and SubscriptionStoreView.

How do I build a paywall using SubscriptionStoreView?

You can build a modern paywall using SubscriptionStoreView by passing your product group ID to automatically render a fully functional subscription interface. This SwiftUI view handles the display of subscription options, purchase buttons, and transaction processing natively.

How does StoreKit 2 handle transaction verification and entitlements?

StoreKit 2 handles transaction verification and entitlements through the modern Transaction API, which provides cryptographically signed transaction data. You verify entitlements by listening to transaction updates and checking the verified purchase status to grant or revoke access to premium features.

Can I manage promotional offers and win-back offers with StoreKit 2?

Yes, you can manage promotional offers and win-back offers with StoreKit 2. The framework supports implementing offer codes, promotional offers, and handling subscription renewal logic, allowing you to retain subscribers and manage various subscription lifecycle events effectively.

What is the best way to handle subscription lifecycles in iOS apps?

The best way to handle subscription lifecycles in iOS apps is by using StoreKit 2's Transaction and Product APIs to monitor renewal status, process refunds, and verify entitlements. This modern approach ensures a smooth and compliant subscription management experience.

Why use ProductView and StoreView for displaying in-app purchases?

You use ProductView and StoreView for displaying in-app purchases because they provide native SwiftUI components that automatically sync with the App Store. These views simplify rendering product details and processing transactions without building custom UI logic from scratch.