Contents

interruptedPurchasesEnabled

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

Declaration

var interruptedPurchasesEnabled: Bool { get set }

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