<!--
{
  "availability" : [
    "iOS: 13.0.0 - 18.0.0",
    "iPadOS: 13.0.0 - 18.0.0",
    "macCatalyst: 13.1.0 - 18.0.0",
    "macOS: 10.15.0 - 15.0.0",
    "tvOS: 13.0.0 - 18.0.0",
    "visionOS: 1.0.0 - 2.0.0",
    "watchOS: 6.2.0 - 11.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/SKPaymentQueueDelegate/paymentQueue(_:shouldContinue:in:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "c:objc(pl)SKPaymentQueueDelegate(im)paymentQueue:shouldContinueTransaction:inStorefront:"
  },
  "title" : "paymentQueue(_:shouldContinue:in:)"
}
-->

# paymentQueue(_:shouldContinue:in:)

Asks the delegate whether to continue the transaction if the device’s App Store storefront changes during a transaction.

```
optional func paymentQueue(_ paymentQueue: SKPaymentQueue, shouldContinue transaction: SKPaymentTransaction, in newStorefront: SKStorefront) -> Bool
```

## Discussion

StoreKit calls this delegate method if the storefront changes while processing a transaction.

- Return `true` if you wish to continue the transaction within the updated storefront.
- Return `false` to stop the transaction. The transaction will fail with the error [`SKError.Code.storeProductNotAvailable`](/documentation/StoreKit/SKError/Code/storeProductNotAvailable). In this case, consider displaying a message to the user indicating that the product isn’t available in the current storefront.

If the delegate isn’t implemented, [`paymentQueue(_:shouldContinue:in:)`](/documentation/StoreKit/SKPaymentQueueDelegate/paymentQueue(_:shouldContinue:in:)) defaults to `true`.

This call times out after approximately one second, defaulting to `false` and causing the transaction to fail. The delegate should return as quickly as possible. Don’t perform any networking calls in this method. Your app should cache product availability information locally before starting a transaction.

See [`SKStorefront`](/documentation/StoreKit/SKStorefront) for more information.

---

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)