mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 18:38:36 +08:00
IAP: Do not consume the purchase
Otherwise it will not show up when querying past purchases
This commit is contained in:
@ -167,10 +167,9 @@ class _PurchaseWidgetState extends State<PurchaseWidget> {
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (Platform.isAndroid) {
|
||||
await InAppPurchaseConnection.instance.consumePurchase(purchaseDetails);
|
||||
}
|
||||
if (purchaseDetails.pendingCompletePurchase) {
|
||||
Log.i("Pending Complete Purchase - ${purchaseDetails.productID}");
|
||||
|
||||
await InAppPurchaseConnection.instance
|
||||
.completePurchase(purchaseDetails);
|
||||
}
|
||||
|
Reference in New Issue
Block a user