verifyPurchase abstract method
Future<VerifyPurchaseResult>
verifyPurchase({
- VerifyPurchaseAppleOptions? apple,
- VerifyPurchaseGoogleOptions? google,
- VerifyPurchaseHorizonOptions? horizon,
Verify a purchase against your own backend. Returns a platform-specific variant of VerifyPurchaseResult — VerifyPurchaseResultIOS exposes isValid
- receipt/JWS metadata, VerifyPurchaseResultAndroid carries Play Store receipt fields (no isValid), and VerifyPurchaseResultHorizon uses success. Inspect the concrete variant before reading fields. See: https://www.openiap.dev/docs/features/validation#verify-purchase
Implementation
Future<VerifyPurchaseResult> verifyPurchase({
VerifyPurchaseAppleOptions? apple,
VerifyPurchaseGoogleOptions? google,
VerifyPurchaseHorizonOptions? horizon,
});