VerifyPurchaseWithProviderProps

VerifyPurchaseWithProviderProps#

Input type for verifyPurchaseWithProvider() - used to verify purchases through external providers like IAPKit.

Input to verifyPurchaseWithProvider — pick a managed validator. The PurchaseVerificationProvider enum currently exposes only IAPKit (open source under MIT — source at packages/kit). See Validation docs.

NameTypeSummary
providerPurchaseVerificationProviderThe verification provider to use. Currently only 'iapkit' is supported.
iapkitRequestVerifyPurchaseWithIapkitProps?IAPKit-specific verification parameters.

RequestVerifyPurchaseWithIapkitProps#

Parameters for IAPKit verification. Product client payload enrichment is opt-in, so existing integrations keep the same response shape and bandwidth by default.

NameTypeSummary
apiKeystring?API key used for the Authorization header (Bearer {apiKey}).
baseUrlstring?Available in OpenIAP Spec 2.3.1 / openiap-apple 2.4.0 / openiap-google 2.4.0. IAPKit server origin. Defaults to https://kit.openiap.dev; set it to a reachable HTTP(S) origin for self-hosted or local IAPKit verification. The apiKey must be issued by the same IAPKit/Convex deployment that this origin uses.
includeClientPayloadboolean?Defaults to false. When true, a valid Apple or Google verification may include the public product clientPayload stored in IAPKit. Invalid receipts, products without an active catalog row, removed products, products without a payload, and Horizon or Amazon responses omit it.
appleRequestVerifyPurchaseWithIapkitAppleProps?Apple/iOS verification parameters.
googleRequestVerifyPurchaseWithIapkitGoogleProps?Google/Android verification parameters.
amazonRequestVerifyPurchaseWithIapkitAmazonProps?Amazon Appstore verification parameters for Fire OS and Vega OS purchase receipts.

See the IapkitProductClientPayload result shape and the IAPKit product client payload guide.

RequestVerifyPurchaseWithIapkitAppleProps#

NameTypeSummary
jwsstringThe JWS token returned with the purchase response.

RequestVerifyPurchaseWithIapkitGoogleProps#

NameTypeSummary
purchaseTokenstringThe token provided to the user's device when the product or subscription was purchased.

RequestVerifyPurchaseWithIapkitAmazonProps#

Amazon Appstore receipt verification parameters. Fire OS and Vega OS both use this amazon payload when verifying through IAPKit. Amazon App Tester receipts also require the project-level Allow Amazon App Tester / RVS Cloud Sandbox opt-in.

NameTypeSummary
expectedProductIdstring?Available in OpenIAP Spec 3.2.0 / openiap-apple 3.2.0 / openiap-google 3.3.0. Optional product ID that must exactly match the product ID returned by Amazon RVS.
userIdstring?Amazon Appstore user id returned by PurchaseResponse.getUserData().getUserId().
receiptIdstringAmazon Appstore receipt id returned by PurchaseResponse.getReceipt().getReceiptId().
sandboxboolean?Use Amazon RVS Cloud Sandbox for Amazon App Tester receipts. The IAPKit project opt-in is disabled by default.