MarketPlaceService callback for avatar item purchases

Currently there is no reliable way to determine if a player obtained an item via a PromptProduct purchase. Having something similar to ProcessReceipt but for avatar items would be very useful for UGC purchase validation (especially for limited UGC where owning multiple of one item could be used for a scaled multiplier).

PromptPurchaseFinished does exist however this event is not suitable for security for the following reasons:

  • This event does not fire if the player leaves the game directly after they purchase/claim an item because this event takes a few seconds to run. This makes purchasing UGC with in game currency very difficult and unreliable to do.
  • isPurchased is the 3rd arg provided by this event, however this value has no guarantee to correlate to whether the player actually obtained the item or not.

Something akin to this:

MarketPlaceService.AssetPurchaseProcessed: (userId: number, purchaseSuccess: boolean) -> Enum.ProductPurchaseDecision

Bumping this post. I wanted to implement a currency reward for players purchasing accessories in my game, but it’s extremely over-complicated to securely track if a player has purchased an asset from the game. (let alone obtaining the price it was purchased at)


Here are some more fun facts about PromptPurchaseFinished:

PromptPurchaseFinished “isPurchased” parameter can be spoofed
The “isPurchased” boolean parameter returned by PromptPurchaseFinished does not actually reflect if the Asset was purchased (quite a misleading name). isPurchased can always be set to true by exploiters if the Asset is in their inventory. (Yes, isPurchased can be true multiple times for one Asset)

PromptPurchaseFinished can be triggered anytime
PromptPurchase can be ran by clients. I only see this utilized by the inspect avatar function from the pause menu. Although, since the client has access to this function, it could be ran anytime to bypass certain security measures (i.e., the server using PlayerOwnsAsset before prompting a player an accessory)


Additional Note:
GamePasses have the same exact issues, but with their version of these events. (PromptGamePassPurchase & PromptGamePassPurchaseFinished)


Can we please get a new event like ProcessReceipt for Assets and GamePasses :pray:

Does anyone know how to work around this problem? I’ve already run into players who are well aware of this vulnerability and actively exploit it to obtain UGC items by bypassing the game’s rules.