---
title: SKPaymentTransactionState.failed
framework: storekit
role: symbol
role_heading: Case
path: storekit/skpaymenttransactionstate/failed
---

# SKPaymentTransactionState.failed

A failed transaction.

## Declaration

```swift
case failed
```

## Mentioned in

Implementing promotional offers in your app Processing a transaction Testing an interrupted purchase Testing In-App Purchases in Xcode

## Discussion

Discussion Check the error property to determine what happened.

## See Also

### Constants

- [SKPaymentTransactionState.purchasing](storekit/skpaymenttransactionstate/purchasing.md)
- [SKPaymentTransactionState.purchased](storekit/skpaymenttransactionstate/purchased.md)
- [SKPaymentTransactionState.restored](storekit/skpaymenttransactionstate/restored.md)
- [SKPaymentTransactionState.deferred](storekit/skpaymenttransactionstate/deferred.md)
