iOS clearTransactionIOS

Clear pending transactions from the StoreKit payment queue.

Iterates Transaction.unfinished and calls .finish() on each — sandbox/dev helper, do NOT ship in production paths. See the Apple StoreKit reference.

Signature

swift
func clearTransactionIOS() async throws -> Bool

Returns#

Promise<boolean>true once unfinished transactions in the queue have been cleared.

Example

swift
try await OpenIapModule.shared.clearTransactionIOS()