Skip to content

Commit

Permalink
More try/catch around finalizing
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmontemagno committed May 12, 2023
1 parent 1bc1b04 commit 8802f2a
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 8802f2a

Please sign in to comment.