<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/Product/PurchaseOption/onStorefrontChange(shouldContinuePurchase:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "s:8StoreKit7ProductV14PurchaseOptionV18onStorefrontChange014shouldContinueD0AESbAA0G0Vc_tFZ"
  },
  "title" : "onStorefrontChange(shouldContinuePurchase:)"
}
-->

# onStorefrontChange(shouldContinuePurchase:)

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

```
@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`](/documentation/StoreKit/Transaction/storefront) value during a transaction.

## Return Value

[`Product.PurchaseOption`](/documentation/StoreKit/Product/PurchaseOption)

## Discussion

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)