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

# onStorefrontChange(shouldContinuePurchase:)

Indicates whether a transaction needs to continue if the App Store storefront changes on the device during the transaction.

## Declaration

```swift
@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 doc://com.apple.storekit/documentation/StoreKit/Transaction/storefront value during a transaction.

## Return Value

Return Value Product.PurchaseOption

## Discussion

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