verifyPurchase abstract method
Future<VerifyPurchaseResult>
verifyPurchase({
- VerifyPurchaseAppleOptions? apple,
- VerifyPurchaseGoogleOptions? google,
- VerifyPurchaseHorizonOptions? horizon,
Verify a purchase against your own backend. Every VerifyPurchaseResult variant exposes isValid, so entitlement can be gated without inspecting the concrete type. Variants add their own metadata on top: IOS carries receipt/JWS fields, Android carries Play Store receipt fields, and Horizon carries grantTime. See: https://openiap.dev/docs/features/validation#verify-purchase
Implementation
Future<VerifyPurchaseResult> verifyPurchase({
VerifyPurchaseAppleOptions? apple,
VerifyPurchaseGoogleOptions? google,
VerifyPurchaseHorizonOptions? horizon,
});