after hours of scratching my head and googling and coming up with nothing, i finally noticed my mistake... i used PromptProductPurchase instead of PromptPurchase. i guess if anyone else has this problem this is what is wrong.

so originally i had game:GetService("MarketplaceService"):PromptProductPurchase(player, clothnigid)

but it should have been game:GetService("MarketplaceService"):PromptPurchase(player, clothnigid)

i'm trying to sell my gamepasses and my clothing in my game. when i click on the buy button instead of being prompted to purchase i get the error "your purchase failed because in-game purchases are temporarily disabled. your account has not been charged. please try again later" this only happens with my gamepasses and clothing. i have developer products that i'm selling in the same game and they work right. i'm using the same code to seel the clothing and passes as the developer products. what am i missing?

script 1


local clothnigid = 12345

local clothingbutton = game.Workspace.clothingbutton.clickdetector

clothingbutton.MouseClick:connect(function(player)
	game:GetService("MarketplaceService"):PromptProductPurchase(player, clothnigid)
end)

script 2

local MarketplaceService = game:GetService("MarketplaceService")
local ds = game:GetService("DataStoreService"):GetDataStore("Purchases")


local clothnigid = 12345

MarketplaceService.ProcessReceipt = function(receiptInfo) 

	-- find the player based on the PlayerId in receiptInfo
	for i, player in ipairs(game.Players:GetChildren()) do
		if player.userId == receiptInfo.PlayerId then


			if receiptInfo.ProductId == clothnigid  then		
		
end end end

		local playerProductKey = "player_" .. receiptInfo.PlayerId .. receiptInfo.PurchaseId
	ds:IncrementAsync(playerProductKey, 1)
	

	return Enum.ProductPurchaseDecision.PurchaseGranted		
end