Contents

SKTestTransaction

A transaction that occurs in the testing environment.

Declaration

class SKTestTransaction

Overview

The test transaction represents the test environment’s knowledge of the transaction, including its identifier and the transaction’s state. It represents all the transaction-related configurations you control manually in Xcode for interrupted purchases, Ask to Buy scenarios, and changes to a subscription’s auto-renew state.

The test environment creates an SKTestTransaction instance each time your test code calls any method of SKTestSession that affects in-app purchases.

Topics

Identifying Transactions and Products

Getting Payment Transaction States

Getting Dates

Getting Test Environment States

See Also

StoreKit transaction testing