How to migrate whole system that uses StoreKit 1, AppStore Notifications v1 and verifyReceipt to new versions?
Generated on 8/12/2024
1 search
To migrate your system from StoreKit 1, App Store Notifications v1, and verifyReceipt to the new versions, you should follow these steps:
-
Update to StoreKit 2:
- StoreKit 2 is recommended for a better in-app purchase experience. It offers improvements such as access to customer transaction history and subscription renewal info, and it uses modern Swift features like async/await. StoreKit 2 also supports back deployment, allowing you to access new features even on older OS versions. For more details, refer to the session What’s new in StoreKit and In-App Purchase.
-
Migrate App Store Notifications:
- Enable App Store server notifications version 2 for your app. This version provides notifications for all purchases, including renewals, which can occur when the customer is not using the app. This helps in discovering purchases without relying on the device. More information can be found in the session Explore App Store server APIs for In-App Purchase.
-
Transition from verifyReceipt:
- Use the App Store Server library to transition away from the deprecated verifyReceipt endpoint. This library simplifies integration with the App Store server and provides built-in signed data verification. It also allows you to extract transaction information from deprecated receipts. For more guidance, see the session Explore App Store server APIs for In-App Purchase.
By following these steps, you can ensure your app is up-to-date with the latest in-app purchase technologies and provides a seamless experience for your users.
What’s new in StoreKit and In-App Purchase
Learn how to build and deliver even better purchase experiences using the App Store In-App Purchase system. We’ll demo new StoreKit views control styles and new APIs to improve your subscription customization, discuss new fields for transaction-level information, and explore new testability in Xcode. We’ll also review an important StoreKit deprecation.
Explore App Store server APIs for In-App Purchase
Learn how to leverage your server to build great In-App Purchase experiences with the latest updates to the App Store Server API, App Store Server Notifications, and the open source App Store Server Library. After a recap of current APIs, we’ll introduce updated endpoint functionality, new transaction fields, and a new notification type. We’ll also discuss best practices for the purchase lifecycle, delivering content, and targeting offers, so you can become a server power user.
Implement App Store Offers
Learn how to engage customers with App Store Offers using App Store Connect, as well as the latest StoreKit features and APIs. Discover how you can set up win-back offers (a new way to re-engage previous subscribers) and generate offer codes for Mac apps. And find out how to test offers in sandbox and Xcode to make sure they work smoothly.