Scripting Support - Purchase System

Hi there Cookie tech!

I’m currently trying to make a hub system to buy products but it won’t work!

What its meant to do:
It works fine for prompt purchasing the product its just the part of confirming it has been bought
I bought it and it wont print anything

local id = 1307701715
local mps = game:GetService("MarketplaceService")
game.Players.PlayerAdded:Connect(function(player)
	mps:PromptProductPurchase(player,id)
	if Enum.ProductPurchaseDecision.PurchaseGranted == true then
		print("Product Purchased!")
	end
end)

Thanks! Aspect.

Try MarketplaceService:ProcessReceipt()

1 Like

This should be the method, make sure you run this on the server too. :slight_smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.