Using the in_app_purchase 0.6.0 plugin for IAP in a Flutter app, I can't find how to verify the purchase anywhere. In the package example at the part where you would verify the purchase it says:
// IMPORTANT!! Always verify a purchase before delivering the product.
// For the purpose of an example, we directly return true.
return Future<bool>.value(true);
I've found you can get verification data from the purchaseDetails & there are 3 parameters available
purchaseDetails.verificationData.serverVerificationData
purchaseDetails.verificationData.localVerificationData
purchaseDetails.verificationData.source
The server & local values are the same when I test, is comparing those to each-other considered the verification? The way the comments in the code are worded it makes it seem like you should pass one of those values and the source (ios or android) to some other verification method. If this is the case what method should be used to verify?