As a developer I’d like to be able to subscribe to MarketplaceService:PromptBulkPurchaseFinished from the server to know which items the player has actually purchased in that specific operation.
This missing behavior is even more confusing because PromptBulkPurchase has to be fired from the server. Currently, custom logic has to be introduced by developers to be able to know which items were purchased:
- Generate the table of assets to include in the prompt
- Check which assets are already owned by the player and store that separately
- Wait for the player to call a remote indicating that they have completed the purchase
- Make sure that that payload is correct according to the saved purchase
- Check ownership of all items the player claims to have bought again
- Contrast with previous list of previously owned items
- Now do something with this information
This process also has the issue of not being able to track limiteds because players may already own them and can have multiple copies of them. So there’s currently no way to reliably know if a player bought a limited through a BulkPurchase prompt.
Related:
forum post 1
forum post 2