How to give a purchased item to the correct save slot if server crashes before PurchaseGranted


I’m currently working on dev products and I’m wondering how would I handle a situation where a player would purchase an item on their, let’s say, “save slot 1”, and then the server would crash.

The purchase wouldn’t be granted and wouldn’t be saved (since I auto save and don’t save right away).

When they rejoin the game, the processReceipt function would be invoked again. But what if they choose another save, let’s say “save slot 2”? I don’t know what save slot they previously had so with my current system, I’d give the item to their save slot 2 automatically, but I want to avoid that…