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