diff --git a/src/Plugin.InAppBilling/InAppBilling.apple.cs b/src/Plugin.InAppBilling/InAppBilling.apple.cs index 94d9d92..4efdb13 100644 --- a/src/Plugin.InAppBilling/InAppBilling.apple.cs +++ b/src/Plugin.InAppBilling/InAppBilling.apple.cs @@ -478,13 +478,14 @@ public async override Task FinalizePurchaseAsync(string transactionIdentif if (purchases == null) return false; - var transaction = purchases.Where(p => p.TransactionIdentifier == transactionIdentifier).FirstOrDefault(); - if (transaction == null) - return false; + var transactions = purchases.Where(p => p.TransactionIdentifier == transactionIdentifier); + if ((transactions?.Count() ?? 0) == 0) + return false; try { - SKPaymentQueue.DefaultQueue.FinishTransaction(transaction); + foreach(var transaction in transactions) + SKPaymentQueue.DefaultQueue.FinishTransaction(transaction); } catch(Exception ex) {