<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKitTest",
  "identifier" : "/documentation/StoreKitTest/SKTestSession/resolveIssueForTransaction(identifier:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "StoreKit Test"
    ],
    "preciseIdentifier" : "c:objc(cs)SKTestSession(im)resolveIssueForTransactionWithIdentifier:error:"
  },
  "title" : "resolveIssueForTransaction(identifier:)"
}
-->

# resolveIssueForTransaction(identifier:)

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

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

## Parameters

`identifier`

The transaction [`identifier`](/documentation/StoreKitTest/SKTestTransaction/identifier) for the transaction that the test environment resolves.

## 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`](/documentation/StoreKitTest/SKTestSession/interruptedPurchasesEnabled) and [`billingGracePeriodIsEnabled`](/documentation/StoreKitTest/SKTestSession/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:)`](/documentation/StoreKitTest/SKTestSession/resolveIssueForTransaction(identifier:)), your app receives the new transaction in the <doc://com.apple.documentation/documentation/StoreKit/Transaction/updates> sequence or the <doc://com.apple.documentation/documentation/StoreKit/SKPaymentQueue/transactionObservers>.

---

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)