Use this page with AI

Copy this into your coding assistant and add your request.

Read https://openiap.dev/docs/types/verify-purchase 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 →

VerifyPurchase Types

Purchase Verification Types#

Types used with verifyPurchase() for server-side purchase verification.

Input/output shape for verifyPurchase. iOS: validates the JWS from Transaction.jsonRepresentation (Apple docs). Android: validates the purchaseToken against Google Play Developer API (Google docs).

VerifyPurchaseProps#

NameSummary
appleApple App Store verification options. Contains: sku
googleGoogle Play verification options. Contains: sku, packageName, purchaseToken, accessToken, isSub
horizonMeta Horizon (Quest) verification options. Contains: sku, userId, accessToken

VerifyPurchaseResult#

Union of VerifyPurchaseResultIOS, VerifyPurchaseResultAndroid, and VerifyPurchaseResultHorizon.

VerifyPurchaseResultIOS#

NameSummary
isValidWhether verification succeeded
receiptDataRaw App Store receipt data
jwsRepresentationJWS-encoded transaction
latestTransactionMost recent transaction for this product