Hello, i am experiencing this problem from weeks now. Whenever i try to prompt a gamepass in-game it fails to prompt.
I tried even creating a new one but still, same problem and the ProductId is correct, i checked multiple times. Developer products works perfectly fine, i am wondering why gamepasses doesn’t, hope any of you could help me.
function Module.PromptPurchase(Executor, Id)
if Id and Id > 0 and not Module.CheckDebounce(Executor.Name) then
Module.StartDebounce(Executor.Name, 1)
if not Module.CheckId(Id) then Executor:Kick("Attempt of exploiting detected"); return end
if not _G.ProductsActivated then Notification:FireClient(Executor, "The products are currently offline, try again later", 5); return end
local Info
local Success = pcall(function()
Info = MarketplaceService:GetProductInfo(Id, Enum.InfoType.GamePass)
end)
if not Success then
Info = MarketplaceService:GetProductInfo(Id, Enum.InfoType.Product)
end
if Info or PurchasesFunctions[Id] then
if Info.ProductType == "Game Pass" then
MarketplaceService:PromptGamePassPurchase(Executor, Info.ProductId)
else
MarketplaceService:PromptProductPurchase(Executor, Id)
end
else
Notification:FireClient(Executor, "This product has not been implemented yet.", 5)
end
end
end
It print a different id from the one sent in the parameter, that’s why when i tried to prompt the sent id will be blocked because detected as “Third Party Sales”
Just tried and it is detected as third party, might be because the game is owned by the group? But still the gamepass i created is owned by the same group