StoreKit 2

StoreKit provides a simple and secure way to purchase digital goods or services in your apps across all Apple platforms, so people can start playing, gaming, reading, and more, right away. StoreKit 2 uses modern Swift and SwiftUI APIs that make it easy to deliver great in-app purchase experiences.

What’s new

Learn about the updates in StoreKit views, new APIs to improve your subscription customization, and In-App Purchase testing enhancements.

Designed Swift-first

StoreKit 2 takes advantage of the latest advancements in Swift, including new language features such as Swift concurrency, to simplify how you get product information, merchandise products in your app, handle transactions, and manage access to content and subscriptions.

Swift-based APIs

Swift-based APIs let you easily determine product entitlements and eligibility for offers, quickly get the history of all in-app purchase transactions for your app, find out the latest status of a subscription with one simple check, and more. StoreKit 2 APIs return the same information as the App Store Server API, ensuring you get the latest information about transactions whether calling from your app or server.

StoreKit views

With SwiftUI views provided by StoreKit, it’s easier than ever to create merchandising experiences for in-app purchases and subscriptions. Take advantage of three different StoreKit views to showcase your products across Apple platforms; StoreView, ProductView, and SubscriptionStoreView help you get up and running with merchandising faster than ever. With as little as one line of code, the description, price, and duration for each level of service are clearly presented to the user.

  • Offer in-app purchases in different languages and currencies with built-in localization support.
  • Easily provide secure in-app purchase experiences that follow Apple’s design best practices.
  • Customize StoreKit views to match the look and feel of your app.

Learn more about StoreKit views

Simple and secure transactions

Users make purchases with a secure App Store account using their preferred payment method on file, and deep integrations with Touch ID and Face ID provide a strong layer of privacy and security. In StoreKit 2, transactions are cryptographically signed by the App Store in JSON Web Signature format for increased security and easier parsing of transaction information. And StoreKit 2 automatically makes up-to-date transactions available to your app, whether someone launches it for the first time or downloads it on another device.

Customer support

Provide more seamless support for in-app purchases with StoreKit 2 APIs that let people request refunds and manage their subscriptions from within your app. And the App Store server API provides additional support options that help you resolve in-app purchase issues quickly and efficiently, such as confirming purchase details during a customer support call and extending the renewal date of a subscription.

Testing support

Take advantage of StoreKit 2 and test your apps in Xcode and the App Store sandbox environment to ensure that all of the features work seamlessly.

Learn about StoreKit Testing in Xcode

Resources and documentation

Use Xcode and these resources to build in-app purchases with StoreKit 2.

Download Xcode from the Mac App Store