---
title: "onStorefrontChange(shouldContinuePurchase:)"
framework: storekit
role: symbol
role_heading: Type Method
path: "storekit/advancedcommerceproduct/purchaseoption/onstorefrontchange(shouldcontinuepurchase:)"
---

# onStorefrontChange(shouldContinuePurchase:)

A closure that determines whether the transaction continues if the device’s App Store storefront changes during a transaction.

## Declaration

```swift
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

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