Use this page with AI

Copy this into your coding assistant and add your request.

Read https://openiap.dev/docs/apis/ios/is-transaction-verified-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]
See an example request →

iOS isTransactionVerifiedIOS

Verify a StoreKit 2 transaction signature (iOS 15+, macOS 14+).

Inspects the VerificationResult from Transaction.latest(for:) — .verified vs .unverified. See the Apple StoreKit reference.

Signature

swift
func isTransactionVerifiedIOS(sku: String) async throws -> Bool

Parameters#

  • sku (required, string) — Product identifier.

Returns#

Promise<boolean> — Whether the latest transaction for sku passed JWS verification.

Example

swift
let ok = try await OpenIapModule.shared.isTransactionVerifiedIOS(sku: "com.app.premium")

Returns true when StoreKit 2 has locally verified the transaction's JWS signature. For server-side validation, fetch the signed payload with getTransactionJwsIOS and verify it on your backend using Apple's public keys.