restoreCompletedTransactions returns varying amount transactions

I'm testing restoring purchases, and in paymentQueue(queue: updatedTransactions transactions:) I print the amount of transactions to process. This number is all over the place. I get anywhere from 5 to over 100. Why is this?

Replies

OK, I might have found the cause but I need to ask a couple of questions first. First, what happens when you don't remove an observer, and secondly what happens when multiple observers are added?