---
title: state
framework: storekittest
role: symbol
role_heading: Instance Property
path: storekittest/sktesttransaction/state
---

# state

The state of the transaction in the test environment.

## Declaration

```swift
var state: SKPaymentTransactionState { get }
```

## Discussion

Discussion The transaction states in the test environment are the same states that StoreKit uses in production.
