Use this page with AI
Copy this into your coding assistant and add your request.
Read https://openiap.dev/docs/apis/ios/get-pending-transactions-ios and https://openiap.dev/llms.txt. Follow the reading instructions, detailed reference, and linked guides relevant to my task before making changes.
Inspect my existing project and reuse its framework and conventions. Ask me for missing product decisions. Implement the requested behavior and run the applicable checks.
Show the working result, the commands and actual test results, and any remaining limitations. Keep your explanation brief.
My request: [describe what customers should be able to do]iOS getPendingTransactionsIOS
Retrieve all pending transactions in the StoreKit queue.
Iterates Transaction.unfinished to surface transactions still awaiting finish(). See the Apple StoreKit reference.
Swift, Flutter, and Godot also run this query on macOS. Match the returned transaction ID, product, store identity, and known environment to the receipt being handled. Reject revoked, upgraded, or expired receipts before granting access or finishing a purchase.
Signature
swift
func getPendingTransactionsIOS() async throws -> [PurchaseIOS]Returns#
Promise<PurchaseIOS[]> — array of StoreKit transactions in the iOS-specific shape. See Purchase for the full field reference.
Example
swift
let txs = try await OpenIapModule.shared.getPendingTransactionsIOS()