Roblox wont recognise dev product

I’m currently writing a market place handler, however Roblox wont recognise the dev product id (I’ve tried with gamepasses) its seemingly for no reason.

Module:


local MarketPlaceService = game:GetService("MarketplaceService")

local Global = {}

MarketPlaceService.ProcessReceipt = function(receiptInfo)
	print(receiptInfo)

	return Enum.ProductPurchaseDecision.PurchaseGranted

	--local purchase = Global[receiptInfo.PlayerId]


	--purchase._CallbackConnection:Disconnect()
end

local marketplacehandler = {}
marketplacehandler.__index = marketplacehandler

	function marketplacehandler.PromptPurchase(id : number, player)
		local self = setmetatable({},marketplacehandler)
		self.__index = self -- allow for connections

		Global[player.UserId] = self

		MarketPlaceService:PromptPurchase(player,id)

		return self
	end

	function marketplacehandler:Connect(Callback)
		if not Callback then return nil end

		self.Callback = Callback

		local Returned = setmetatable({},self)

		function Returned.Disconnect()
			if self.Callback == Callback then
				self.Callback = nil
			else
				warn("[Refer][MarketPlaceHandler] Already disconnected callback or callback was changed before disconnect")
			end

			Returned = nil
		end

		self._CallbackConnection = Returned

		return Returned
	end

return marketplacehandler

Script:

local blah = require(script.Parent)
local pla = game.Players:WaitForChild("jake_4543",150010513513)

local purchase = blah.PromptPurchase(96424210,pla)

local c 
c = purchase:Connect(function()
	print("a")
end)

image
No warnings or errors in the output

I’ve had a similar problem before and my guess is that the product is too new. You can try again some time later and it should work

Alright thanks for the help if it fixes itself ill mark your post as the solution

1 Like

Try this:

MarketPlaceService:PromptProductPurchase("Add items here")

Tried, it just sells me a shirt instead.

Strange, that shouldnt happen, double check you Id

Edit: it works then, its just the Id that is the issue

image
double checked its not the id

Wait whats the difference between product id and asset id, cause I think that might be the issue

I might be wrong but:

Product ID: Usually a Developer Product, Gamepass (and i think) catalog items as well?

Asset ID: Models, Images, Meshes, and Sounds

how would i get the product id?

Go into Game Settings,
then Monetization
After that go to the Developer Product, and Copy the ID

Example From one of my games:

Sorry forgot to post that I fixed it, yeah it was an issue with the ids. Once again roblox adding random ids for no reason