Added support for custom transaction notifications
Added support for custom transaction notifications, including purchase success/failure, cancellation, pending status, and more. The transactionNotification
property has been added to the StoreHelper
class to handle these notifications.
StoreHelper
StoreHelper
quick-start guideStoreHelper
andStoreKit2
in-depth guideStoreHelper
projectStoreHelper
in a UIKit projectRecent Major Changes
isPurchased(productId:)
using thepurchasedProductsFallback
collectionpurchasedProductsFallback
as a cache can be turned on/off usingStoreHelper.doUsePurchasedProductsFallbackCache
purchasedProductsFallback
property is nowpublic private(set)
rather thanpublic
StoreHelper
in a UIKit projectStoreHelper.SubscriptionHelper
:hasLowerValueCurrentSubscription(than:)
,isLapsedSubscriber(to:)
,allSubscriptionTransactions()
@MainActor init()
start()
methodStoreHelper.start()
as soon as possible after initializingStoreHelper
start()
method starts listening for transactions and get localized product info from the App StoreStoreHelper
as a SPM PackageStoreHelper
is in-sync with privateStoreHelper
code used in an app released to the App StoreOverview of StoreHelper
StoreHelper
is a Swift Package Manager (SPM) package that enables developers using Xcode 14/13 to easily add in-app purchase support to iOS 16/15 and macOS 13/12 SwiftUI apps.StoreHelper
is used to provide in-app purchase support in Writerly (iOS/macOS), which is available on the App Store.StoreHelper
provides the following features:License
MIT license, copyright (c) 2022, 2023 Russell Archer. This software is provided “as-is” without warranty and may be freely used, copied, modified and redistributed, including as part of commercial software.
See License for details.
Requirements
StoreHelper
uses Apple’sStoreKit2
, which requires iOS 16/15, macOS 13/12 and Xcode 14/13.Getting Started
Jump to the Quick Start guide.