<!--
{
  "availability" : [
    "iOS: 18.4.0 -",
    "iPadOS: 18.4.0 -",
    "macOS: 15.4.0 -",
    "tvOS: 18.4.0 -",
    "visionOS: 2.4.0 -",
    "watchOS: 11.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/AdvancedCommerceProduct/PurchaseOption/onStorefrontChange(shouldContinuePurchase:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "s:8StoreKit23AdvancedCommerceProductV14PurchaseOptionV18onStorefrontChange014shouldContinueF0AESbAA0I0VYbc_tFZ"
  },
  "title" : "onStorefrontChange(shouldContinuePurchase:)"
}
-->

# onStorefrontChange(shouldContinuePurchase:)

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

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

---

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)