Contents

allTransactions()

Gets a list of all transactions in the test environment.

Declaration

func allTransactions() -> [SKTestTransaction]

Return Value

An array that contains all transactions.

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