mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-30 11:33:34 +08:00
log completePurchase errors
This payment stuff is quite complicated!
This commit is contained in:
@ -198,8 +198,12 @@ class _PurchaseWidgetState extends State<PurchaseWidget> {
|
||||
if (purchaseDetails.pendingCompletePurchase) {
|
||||
Log.i("Pending Complete Purchase - ${purchaseDetails.productID}");
|
||||
|
||||
await InAppPurchaseConnection.instance
|
||||
.completePurchase(purchaseDetails);
|
||||
try {
|
||||
await InAppPurchaseConnection.instance
|
||||
.completePurchase(purchaseDetails);
|
||||
} catch (e, stackTrace) {
|
||||
logException(e, stackTrace);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user