MarketplaceService:GetGamepassInfo()


#1

As a Roblox developer it’s currently impossible to find out info like R$ price or description of a gamepass with the recent gamepass system.

This callback essentially is the same as :GetProductInfo() except only for gamepass Ids.


#2

This functionality already exists:

local gamePassId = 2068240
local info = game:GetService("MarketplaceService"):GetProductInfo(gamePassId, Enum.InfoType.GamePass)
print(game:GetService("HttpService"):JSONEncode(info))

https://wiki.roblox.com/index.php?title=API:Class/MarketplaceService/GetProductInfo