1 Reply

It's going to depend in part on how you have configured your title, since that's as much a part of the logic as the script code. The way that sample (https://github.com/PlayFab/PlayFab-Samples/tree/master/Recipes/PrizeWheel) works is that you specify a virtual currency which is used to "pay" for spins on the prize wheel. The VC is decremented by one for each spin, and each spin adds an item specified by your configuration (usually using a drop table for randomization).

Now, as to Bundles, they are simply items that come with other items included. They are not auto-consumed the way Containers are, because they're not meant to. If you want the Bundle to go away after adding the items it comes with, set it to Consumable with a Period of 3 or 4 seconds. That way, it will clean itself up after that amount of time.

For PurchaseItem, it can only be used for VC purchases using the items and prices you have specified in your catalogs and stores. It cannot add more items than are specified by your configuration. If you received two of an item, that would mean that either two were purchased, or something else in the game configuration (like a PlayStream Action, for instance) added the other. What I would advise is checking your event history for the player, to see why each was added.

Another question, I know that "bundles" are unpacked at the same time as purchases. If so, should not it be consumable? I think bundles should disappear as soon as they open. Or is consumable and instackable an option to coexist? After saving this, can I open the bundle again from the inventory later?