Is there a way to check if the player went through with the purchase prompt?

I am creating a script that lets people buy Roblox items in-game so I receive a commission. So far It does give them the purchase prompt for the item they request, but I have no way of telling whether they went through with it or not. I’ve tried searching but I’ve had no luck, I think I’ve just been unlucky and have been looking at the wrong places. Is this a there a method for this still or did private inventories break it? (sorry for bad formatting this is my first time using the text editor)

Here’s the function that pulls up the prompt:

local PurchasePrompt = function(player, assetId)
game:GetService(“MarketplaceService”):PromptPurchase(player, assetId)
end

2 Likes