Skip to content

Commit

Permalink
Merge branch 'master' into android-v5
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmontemagno committed May 31, 2023
2 parents d3eda74 + 8802f2a commit b0cd28e
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/Plugin.InAppBilling/InAppBilling.apple.cs
Original file line number Diff line number Diff line change
Expand Up @@ -731,10 +731,20 @@ public override void RestoreCompletedTransactionsFinished(SKPaymentQueue queue)

TransactionsRestored?.Invoke(allTransactions);


if (InAppBillingImplementation.FinishAllTransactions)
{
foreach (var transaction in allTransactions)
SKPaymentQueue.DefaultQueue.FinishTransaction(transaction);
{
try
{
SKPaymentQueue.DefaultQueue.FinishTransaction(transaction);
}
catch(Exception ex)
{
Console.WriteLine(ex);
}
}
}
}

// Failure, just fire with null
Expand Down

0 comments on commit b0cd28e

Please sign in to comment.