Copy this into your coding assistant and add your request.
Read https://openiap.dev/docs/apis/finish-transaction 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]
Complete a purchase transaction. Must be called after verifying the purchase to remove it from the queue.
iOS: Calls Transaction.finish(). Until you do, the same transaction replays through Transaction.updates on every app launch. Apple docs. Android: Acknowledges (acknowledgePurchase) for non-consumables/subscriptions or consumes (consumeAsync) for consumables. Google auto-refunds within 3 days if neither runs. Google docs.
Promise<void> — Resolves once the platform finalizes the transaction. In MAUI/C#, FinishTransactionAsync returns Task<string> carrying the finished purchase's Id on every platform.
OpenIAP leaves unfinished iOS subscription transactions for your app to reconcile, even after they expire or are upgraded or revoked. Record your app's entitlement decision before finishing them; if you use a backend, persist its verdict first. A pending receipt or purchase event alone does not mean the subscription is still active. Use getPendingTransactionsIOS to recover unfinished receipts, including revoked transactions that the update listener does not emit.