What’s new in StoreKit and In-App Purchase

Asked on 2025-07-03

2 searches

In the session titled "What’s new in StoreKit and In-App Purchase" from WWDC 2024, several updates and enhancements were introduced:

  1. Deprecation of Original API: Starting with iOS 18, the original API for in-app purchases is deprecated. Developers are encouraged to transition to StoreKit 2, which offers improvements such as access to customer transaction history, subscription renewal info, and automatic cryptographic validation. StoreKit 2 also utilizes modern Swift features like the async/await pattern for tasks such as fetching product metadata and purchasing.

  2. Transaction History Enhancements: The transaction history APIs now include finished consumable transactions, allowing developers to track all consumables without manual intervention. This feature can be enabled via the project's info plist file.

  3. New Fields in Data Models: New fields have been added to the transaction and renewal info data models, including currency information, to provide additional transaction-level details.

  4. Testing Enhancements in Xcode: Xcode 16 introduces new features for testing in-app purchases, such as testing privacy policies and license agreements locally, and simulating different purchase scenarios using the transaction manager.

  5. Merchandising with SwiftUI: New ways to merchandise subscriptions using SwiftUI and StoreKit views were introduced, including a new subscription offer view designed to engage customers.

  6. Subscription Status API: A new subscription status API allows querying subscription status using a transaction ID, providing more flexibility in managing subscriptions.

For more detailed information, you can refer to the session What’s new in StoreKit and In-App Purchase (21:06).