Home > Blockchain >  No longer able to access queryPastPurchases in InAppPurchase Flutter
No longer able to access queryPastPurchases in InAppPurchase Flutter

Time:10-31

I recently updated the InAppPurchase plugin in flutter. The update is breaking the code. I am unable get past purchases using the InAppPurchase instance.Anyone know how to retreive the past purchase?

Final QueryPurchaseDetailsResponse purchaseResponse =await _inAppPurchase.queryPastPurchases();

CodePudding user response:

try to use:

  final InAppPurchase _inAppPurchase = InAppPurchase.instance;
  await _inAppPurchase.restorePurchases();
  • Related