Skip to content

Commit

Permalink
Merge branch 'android-v5' of https://github.com/jamesmontemagno/InApp…
Browse files Browse the repository at this point in the history
…BillingPlugin into android-v5
  • Loading branch information
jamesmontemagno committed May 31, 2023
2 parents 69ee19f + b0cd28e commit 76302c7
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 76302c7

Please sign in to comment.