onStorefrontChange(shouldContinuePurchase:)
Indicates whether a transaction needs to continue if the App Store storefront changes on the device during the transaction.
Declaration
@preconcurrency static func onStorefrontChange(shouldContinuePurchase: @escaping @Sendable (Storefront) -> Bool) -> Product.PurchaseOptionParameters
- shouldContinuePurchase:
A closure that returns a Boolean value to indicate whether the purchase needs to continue when the App Store storefront changes to the Storefront value during a transaction.
Return Value
Discussion
The default value is true if this option isn’t added to the purchase.