title: How to verify in app purchases in Flutter?
body: <p>I am using <a href="https://pub.dev/packages/in_app_purchase" rel="nofollow noreferrer">in_app_purchase</a> in my Flutter app. The products are consumables.</p>
  <p>I have followed the official example of package. But there is not logic for <strong>verifyingPurchases</strong>.
  Right Now I am verifying the products with following checks.</p>
  <pre><code>bool _verifyPurchase(PurchaseDetails purchaseDetails)  {
  if (purchaseDetails.status == PurchaseStatus.purchased &amp;&amp;
      _productIDs.contains(purchaseDetails.productID) &amp;&amp;
      purchaseDetails.transactionDate != null) {
    return true;
  } else {
    _handleInvalidPurchase(purchaseDetails);
    return false;
  }
  }
  </code></pre>
  <p>But as <strong>verifyingPurchases</strong> is a very crucial thing. So I have doubt about it. I check on internet but found nothing great on how to verify Products in Flutter.The only solution is to use <strong>RevenueCart</strong>. But that is more essential for subscription or non-consumable products. Is there any logic that we can easily <strong>verifyPurchases</strong> in app?</p>