---
title: "paymentQueue(_:restoreCompletedTransactionsFailedWithError:)"
framework: storekit
role: symbol
role_heading: Instance Method
path: "storekit/skpaymenttransactionobserver/paymentqueue(_:restorecompletedtransactionsfailedwitherror:)"
---

# paymentQueue(_:restoreCompletedTransactionsFailedWithError:)

Tells the observer that an error occurred while restoring transactions.

## Declaration

```swift
optional func paymentQueue(_ queue: SKPaymentQueue, restoreCompletedTransactionsFailedWithError error: any Error)
```

## Parameters

- `queue`: The payment queue that was restoring transactions.
- `error`: The error that occurred.

## Mentioned in

Processing a transaction

## See Also

### Restoring transactions

- [paymentQueueRestoreCompletedTransactionsFinished(_:)](storekit/skpaymenttransactionobserver/paymentqueuerestorecompletedtransactionsfinished(_:).md)
