---
title: allTransactions()
framework: storekittest
role: symbol
role_heading: Instance Method
path: storekittest/sktestsession/alltransactions()
---

# allTransactions()

Gets a list of all transactions in the test environment.

## Declaration

```swift
func allTransactions() -> [SKTestTransaction]
```

## Return Value

Return Value An array that contains all transactions.

## Discussion

Discussion This array contains all transactions, including those that don’t appear in the receipt, such as: Failed transactions Pending Ask to Buy transactions Purchases of consumable products Use this list to work with Ask to Buy, to refund a specific transaction, or delete a transaction from the history, so you can repeat the test.

## See Also

### Managing transactions in the test environment

- [deleteTransaction(identifier:)](storekittest/sktestsession/deletetransaction(identifier:).md)
- [clearTransactions()](storekittest/sktestsession/cleartransactions().md)
