iOS getAppTransactionIOS

Fetch the current app transaction (iOS 16+, macOS 14+).

Wraps AppTransaction.shared — the JWS-verified record of how the app was acquired. iOS 16+, macOS 14+. See the Apple StoreKit reference.

Signature

swift
func getAppTransactionIOS() async throws -> AppTransaction?

Returns#

Promise<AppTransaction | null> — JWS-verified record of how the app was acquired. Returns null when no app transaction is available. Requires iOS 16+ or macOS 14+.

Example

swift
let appTx = try await OpenIapModule.shared.getAppTransactionIOS()