Exciting news: IAPHUB has rolled out full support for StoreKit V2 on iOS 15 and above! ๐๐ฑ
As you may know, IAPHUB uses Apple's StoreKit SDK under the hood to process your in-app purchases. While the previous version, StoreKit SDK (V1), has served its purpose, it also encountered several issues that Apple sought to address with the release of StoreKit V2.
And let me tell you, a lot has changed! Normally, upgrading your codebase to StoreKit V2 would be quite the undertaking. However, since you're leveraging IAPHUB, we've handled all the heavy lifting for you, ensuring a seamless transition without any noticeable differences on your end!
One of the standout features of StoreKit V2 is that Apple now returns the price and currency of a transaction when validating a purchase using their server API (you might not have been aware, but this wasn't the case before). This means no more reliance on client-side data, resulting in more accurate and transparent in-app purchases than ever before. Moreover, it's expected to be faster and more reliable, providing a smoother experience for both you and your users.
And rest assured, even if some of your users haven't made the leap to iOS 15 yet, IAPHUB has got you covered. We seamlessly transition to StoreKit V1 for iOS versions below 15, ensuring uninterrupted functionality for all users.
Before you begin, don't forget to configure the App Store Server API.
Update the IAPHUB SDK to the latest version, then simply set enableStorekitV2 to true when initializing the IAPHUB SDK using the start method. IAPHUB will automatically use StoreKit V2 if it's available.
Also, make sure to test a few transactions in the sandbox before rolling out your app update with StoreKit V2. Proper testing before publishing a change is always a good idea ๐. Happy coding!