Contents

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

Parameters

  • shouldContinuePurchase:

    A closure that returns a Boolean value that determines whether the purchase continues when the storefront changes to Storefront during the purchase process.

Discussion

The default is true if you don’t include this option in the purchase options.