Developer product not working in store

I am using a store system called Insighted’s Store Gui V1, it works for game passes, but it does not seem to work for developer products despite saying it does. trying to use it for developer products does not do anything at all, it does not bring up a box saying there is a problem or anything. i have looked all over for an answer but i do not understand scripting at all so i don’t understand what the issue could be. how do i fix it?

-- // Edit Here // --

local ProductName = "ProductName" -- Name of your product,
local ProductInfo = "ProductInfo" -- Information on your product,
local ProductPrice = "0" -- Price of your product, don't add "R$" to the end,
local ProductImage = "rbxassetid://0000000" -- Image of your product.

local ProductType = "Gamepass" -- Change between "Gamepass", "DeveloperProduct" & "CatalogProduct".
local ProductID = 0 -- ID of your product.

-- // Leave this // --

local robux = "R$"

script.Parent.ProductName.Text = ProductName
script.Parent.ProductInformation.Text = ProductInfo
script.Parent.ProductPrice.Text = ProductPrice..robux
script.Parent.ImageLabel.Image = ProductImage

local MarketplaceService = game:GetService("MarketplaceService")

script.Parent.Purchase.Button.MouseButton1Click:Connect(function()
	if ProductType == "Gamepass" then
		MarketplaceService:PromptGamePassPurchase(game.Players.LocalPlayer, ProductID)
	elseif ProductID == "DeveloperProduct" then
		MarketplaceService:PromptProductPurchase(game.Players.LocalPlayer, ProductID)
	elseif ProductID == "CatalogProduct" then
		MarketplaceService:PromptPurchase(game.Players.LocalPlayer, ProductID)
	end
end)

ProductID is saved as a number, but you tried to check if its equal a string

elseif ProductID == "DeveloperProduct"

it should be ProductType

elseif ProductType == "DeveloperProduct"

Thank you! that fixed it. I can look around to see if this is done wrong anywhere else now that i know what to look for.

1 Like