log completePurchase errors

This payment stuff is quite complicated!
This commit is contained in:
Vishesh Handa
2020-09-07 22:36:45 +02:00
parent fde1149f56
commit 461a887514

View File

@ -198,8 +198,12 @@ class _PurchaseWidgetState extends State<PurchaseWidget> {
if (purchaseDetails.pendingCompletePurchase) { if (purchaseDetails.pendingCompletePurchase) {
Log.i("Pending Complete Purchase - ${purchaseDetails.productID}"); Log.i("Pending Complete Purchase - ${purchaseDetails.productID}");
await InAppPurchaseConnection.instance try {
.completePurchase(purchaseDetails); await InAppPurchaseConnection.instance
.completePurchase(purchaseDetails);
} catch (e, stackTrace) {
logException(e, stackTrace);
}
} }
}); });
} }