---
title: interruptedPurchasesEnabled
framework: storekittest
role: symbol
role_heading: Instance Property
path: storekittest/sktestsession/interruptedpurchasesenabled
---

# interruptedPurchasesEnabled

A Boolean value that determines whether the test environment simulates an interrupted purchase.

## Declaration

```swift
var interruptedPurchasesEnabled: Bool { get set }
```

## Discussion

Discussion The default value is false. Enabling this property causes all purchases to fail until you disable it. During testing, resolve the interrupted purchase by calling resolveIssueForTransaction(identifier:) for the affected transaction. Changing this property overrides its setting in the StoreKit configuration file for this test session. Call resetToDefaultState() to revert all settings to those in the configuration file.

## See Also

### Testing interrupted purchases

- [resolveIssueForTransaction(identifier:)](storekittest/sktestsession/resolveissuefortransaction(identifier:).md)
