Is there any problem with MarketplaceService?

Hi Guys, so I was trying to use MarketplaceService, but the ProcessReceipt isn’t working in Team Test inside Studio for some reason.

Script -

MS.ProcessReceipt = function(receipt)
		local success, err = pcall(function()
			local player = game.Players:GetPlayerByUserId(receipt.PlayerId)
			print(receipt.ProductId) -- this also doesn't print even I got the prompt
			if receipt.ProductId == 1358881369 then
			print("Fired")  -- this also doesn't work
			bindables.ChangeData:Fire("Skips1", player, 1, 1)
		elseif receipt.ProductId == 1361212065 then
			bindables.ChangeData:Fire("Skips5", player, 1, 5)
		elseif receipt.ProductId == 1361212655 then
			bindables.ChangeData:Fire("Skips10", player, 1, 10)
		elseif receipt.ProductId == 1361268917 then
			bindables.ChangeData:Fire("Skips100", player, 1, 100)
		end
	end)
		if success then
			return Enum.ProductPurchaseDecision.PurchaseGranted
		else
			return Enum.ProductPurchaseDecision.NotProcessedYet
		end
end

Is there any problem in my script or something else? Any help is appreciated. Thanks! :slight_smile:

EDIT: It’s weird that nobody knows the fix of this.

Sorry for the late reply :sweat_smile:

The problem is probably something else is using the process receipt.

the major cause of this is maybe you’re using a donation board. try deleting it and see if it fixes the issue.

1 Like

Actually I even tried deleting it, but it didn’t work which is strange. I fixed this though by using PromptProductPurchaseClosed

Btw no problem for late reply! It’s fine

Hello!
I can’t seem to find your issue, but I am sure of a structure that works. You can find it here - This is the official script on the Roblox documentation.
Just scroll down a bit to find it.

1 Like

This is a bug with studio. It’s been an issue since 2019 or earlier, it isn’t due to any wrongdoing on your part.

1 Like

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