onStorefrontChange(shouldContinuePurchase:)
A closure that determines whether the transaction continues if the device’s App Store storefront changes during a transaction.
Declaration
static func onStorefrontChange(shouldContinuePurchase: @escaping @Sendable (Storefront) -> Bool) -> AdvancedCommerceProduct.PurchaseOptionParameters
- shouldContinuePurchase:
A closure that returns a Boolean value that determines whether the purchase continues when the storefront changes to
Storefrontduring the purchase process.
Discussion
The default is true if you don’t include this option in the purchase options.