Contents

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.PurchaseOption

Parameters

  • 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

Product.PurchaseOption

Discussion

The default value is true if this option isn’t added to the purchase.