local s=game:GetService("\077\097\114\107\101\116\112\108\097\099\101\083\101\114\118\105\099\101")local u=require(script.Parent.Promise)local c={}function c.PromiseProductInfo(c,E)return u.Defer(function(u,k)local h,p=pcall(s.GetProductInfo,s,c,E);(h and u or k)(p)end)end return c
local MarketplaceService = game:GetService("MarketplaceService")
local Promise = require(script.Parent.Promise)

local MarketPromise = {}

function MarketPromise.PromiseProductInfo(AssetId, InfoType)
	return Promise.Defer(function(Resolve, Reject)
		local Success, ProductInfo = pcall(MarketplaceService.GetProductInfo, MarketplaceService, AssetId, InfoType);
		(Success and Resolve or Reject)(ProductInfo)
	end)
end

return MarketPromise