restoreCompleted clarification question

Hi,

I’m updating one of my old apps to the new google.iap.billing plugin and i’m reading the documentation on the store.restore() call. In the docs it says:

During this process, the storeTransaction listener defined in store.init() may be called multiple times, once for each item. Once completed, a transaction state "restoreCompleted" is called.

But then it says:

Unlike Apple IAP, Google IAP does not include a "restored" state for transactions. This function should still be called to retrieve all of the user's purchases, but all valid transactions will be of the "purchased" state.

So, if I am calling store.restore() to restore a single non-consumable item, will I get three callback states in the following order (assuming successful restore):

  1. restoreCompleted
  2. purchased
  3. finished

Or will it be 2 callback states:

  1. restoreCompleted
  2. finished

Or will it be these 2 callback states:

  1. purchased
  2. finished

Thanks for your input.

This function should still be called to retrieve all of the user’s purchases, but all valid transactions will be of the “purchased” state.

As always, best is to actually test this on device.