---
title: "resolveIssueForTransaction(identifier:)"
framework: storekittest
role: symbol
role_heading: Instance Method
path: "storekittest/sktestsession/resolveissuefortransaction(identifier:)"
---

# resolveIssueForTransaction(identifier:)

Simulates resolving an issue when you test interrupted purchases or billing retry scenarios.

## Declaration

```swift
func resolveIssueForTransaction(identifier: Int) throws
```

## Parameters

- `identifier`: The transaction doc://com.apple.storekittest/documentation/StoreKitTest/SKTestTransaction/identifier for the transaction that the test environment resolves.

## Discussion

Discussion Call this method to simulate a user resolving an issue that prevents a purchase, such as an interrupted purchase or a billing issue. You enable the testing environment to simulate the issues by setting the interruptedPurchasesEnabled and billingGracePeriodIsEnabled properties, respectively. In the production environment, users resolve the issues by completing actions outside of your app. For example, users may need to agree to new terms and conditions or update a payment card. When you call resolveIssueForTransaction(identifier:), your app receives the new transaction in the updates sequence or the transactionObservers.

## See Also

### Testing interrupted purchases

- [interruptedPurchasesEnabled](storekittest/sktestsession/interruptedpurchasesenabled.md)
