Issue with MarketplaceService:GetProductInfo

Hey, I have a problem with MarketplaceService:GetProductInfo.

Im trying to get the info for a developer product, but it always returns the info of a random shirt with the same id.

What can I do about this? I tried using Enum.InfoType but I was struggling.

Thanks!

2 Likes

What’s the Id of the product you’re trying to get the infos from?

1154573710 is the developer product id

I might be wrong, but I think that developers products (gamepasses as well) have their own IDs. I’m not sure how you can retrieve it tho.

Oh I just found out something that might be useful for you, which is GetDeveloperProductsAsync.
Take a look on the script they show. It prints “the name, price, ID, description and icon AssetId for all of the developer products” (as the page states), so it should do what you need.

3 Likes

Try this:

MarketplaceService:GetProductInfo(1154573710 , 1)

Second parameter being infoType, in this case being 1 as it’s a dev product

3 Likes

You can get the assetId from the picture of a developer product by using create.roblox.com interestingly.

Okay! Thank you, I was providing Enum.InfoType.Asset instead of the 1.

1 Like