Skip to content
Roblox API Reference

MarketplaceService

The service responsible for in-experience transactions.
  • Not creatable
  • Service
Memory category
Instances
Own members
129
Inherited members
75
Subclasses
0
Siblings
608

Properties23

Inherited fromObject2

Property categoryData

Inherited fromInstance21

Property categoryBehavior

Property categoryData

Property categoryPermissions

Methods116

Inherited fromObject3
  • Get an event that fires when a given property of the object changes.
    Parameters
    ParameterDescription
    property: string
    The property to connect to.
    Returns
    TypeDescription
    RBXScriptSignal
    A signal that fires whenever the property changes.
  • Object:IsA(className: string): boolean
    Returns true if an object's class matches or inherits from a given class.
    • Custom Lua state
    • Thread safe
    Parameters
    ParameterDescription
    className: string
    The class against which the Object's class will be checked. Case-sensitive.
    Returns
    TypeDescription
    boolean
    Describes whether the Object's class matched or is a subclass of the given class.
  • Object:isA(className: string): boolean
    Deprecated: This deprecated function is a variant of Object:IsA() which should be used instead.
    • Deprecated
    • Custom Lua state
    Parameters
    Parameter
    className: string
    Returns
    Type
    boolean

    Use IsA instead.

Inherited fromInstance39
Defined byMarketplaceService74
  • MarketplaceService:BindReceiptHandler(transactionType: Enum.ReceiptType,handler: (...any) -> ...any,filter: { any }?,): RBXScriptConnection
    Registers a callback to process receipts of a specific type.
    • Capabilities: Monetization
    Parameters
    ParameterDescription
    transactionType: Enum.ReceiptType
    The ReceiptType indicating which kind of receipt to handle.
    handler: (...any) -> ...any
    A callback function that receives a receipt info dictionary and must return an ReceiptDecision value.
    filter: { any }?
    An optional array of product IDs. When provided, the handler only fires for receipts matching those product IDs. Not supported for RobuxTransferSender or RobuxTransferReceiver receipt types.
    Returns
    TypeDescription
    RBXScriptConnection
    A RBXScriptConnection that can be disconnected to unregister the handler.
  • MarketplaceService:CanUsersTransferRobuxAsync(sender: Player,receiverUser: User,): Enum.RobuxTransferEligibility
    • Yields
    • Capabilities: PromptExternalPurchase
    Parameters
    Parameter
    sender: Player
    receiverUser: User
  • MarketplaceService:ClearProductInfoCaches()
    • Roblox script security
  • MarketplaceService:GetAvailableSubscriptionProductsAsync(productType: string): { any }
    • Yields
    • Roblox script security
    Parameters
    Parameter
    productType: string
    Returns
    Type
    { any }
  • MarketplaceService:GetDeveloperProductsAsync(): Instance
    Returns a Pages object which contains information for all of the current experience's developer products.
    • Yields
    • Capabilities: AssetRead
    Returns
    TypeDescription
    Instance
    A Pages object whose entries describe the current experience's developer products.
  • MarketplaceService:GetPassOwnershipAsync(user: Player,gamePassId: number,): { [string]: any }
    • Yields
    • Capabilities: AssetRead
    Parameters
    Parameter
    user: Player
    gamePassId: number
  • MarketplaceService:GetProductInfoAsync(assetId: number,infoType: Enum.InfoType? = Enum.InfoType.Asset,): { [string]: any }
    Returns the product information of an asset using its asset ID.
    • Yields
    • Capabilities: AssetRead
    Parameters
    ParameterDescription
    assetId: number
    The asset ID of the specified product.
    infoType: Enum.InfoType? = Enum.InfoType.Asset
    An InfoType enum value specifying the type of information being retrieved.
    Returns
    TypeDescription
    { [string]: any }
    A dictionary containing information about the queried item, described in the previous tables.
  • MarketplaceService:GetRobloxSubscriptionDetailsAsync(user: Player): { [string]: any }
    Returns the subscription details for the given user for the Roblox Subscription ecosystem.
    • Yields
    • Capabilities: Monetization
    Parameters
    ParameterDescription
    user: Player
    The user regarding whom to check the subscription status.
    Returns
    TypeDescription
    { [string]: any }
    A dictionary containing subscription details such as IsSubscribed, IsOriginExperience, and optionally StartTime.
  • MarketplaceService:GetRobuxBalance(): number
    • Yields
    • Roblox script security
    Returns
    Type
    number
  • MarketplaceService:GetSubscriptionProductInfoAsync(subscriptionId: string): { [string]: any }
    Returns the product information of a subscription for the given subscriptionId.
    • Yields
    • Capabilities: AssetRead
    Parameters
    ParameterDescription
    subscriptionId: string
    The ID of the subscription to check.
    Returns
    TypeDescription
    { [string]: any }
    A dictionary containing the subscription product information described in the following table.
  • MarketplaceService:GetSubscriptionPurchaseInfoAsync(subscriptionId: string): { [string]: any }
    • Yields
    • Roblox script security
    Parameters
    Parameter
    subscriptionId: string
  • MarketplaceService:GetUsersPriceLevelsAsync(userIds: { any }): { any }
    Returns the regionalized price levels of users, representing the recommended price for an item in each user's regional market.
    • Yields
    • Capabilities: Monetization
    Parameters
    ParameterDescription
    userIds: { any }
    An array of user IDs.
    Returns
    TypeDescription
    { any }
    Returns an array of PriceLevelInfo objects with a dictionary where the keys are user IDs (strings) and their values are the corresponding price levels (integers between 1 and 1000).
  • MarketplaceService:GetUserSubscriptionDetailsAsync(user: Player,subscriptionId: string,): { [string]: any }
    Returns a table that contains the details of the user's subscription for a given subscriptionId.
    • Yields
    • Capabilities: Monetization
    Parameters
    ParameterDescription
    user: Player
    The Player object whose subscription details you want to check.
    subscriptionId: string
    The ID of the subscription to check.
    Returns
    TypeDescription
    { [string]: any }
    A dictionary containing the user's subscription details described in the following table.
  • MarketplaceService:GetUserSubscriptionDetailsInternalAsync(subscriptionId: string): { [string]: any }
    • Yields
    • Roblox script security
    Parameters
    Parameter
    subscriptionId: string
  • MarketplaceService:GetUserSubscriptionPaymentHistoryAsync(user: Player,subscriptionId: string,): { any }
    Returns an Array that contains up to one year of the user's subscription payment history for the given subscriptionId.
    • Yields
    • Capabilities: Monetization
    Parameters
    ParameterDescription
    user: Player
    The Player whose subscription payment history you want to retrieve.
    subscriptionId: string
    The ID of the subscription whose payment history you want to retrieve.
    Returns
    TypeDescription
    { any }
    An array of payment-history entries, ordered from most recent to least recent, as described in the following table.
  • MarketplaceService:GetUserSubscriptionStatusAsync(user: Player,subscriptionId: string,): { [string]: any }
    Returns a table that contains the subscription status of the user for the given subscriptionId.
    • Yields
    • Capabilities: Monetization
    Parameters
    ParameterDescription
    user: Player
    The Player object whose subscription status you want to check.
    subscriptionId: string
    The ID of the subscription to check for.
    Returns
    TypeDescription
    { [string]: any }
    A dictionary containing the user's subscription status described in the following table.
  • MarketplaceService:IsPurchaseSimulated(): boolean
    • Roblox script security
    Returns
    Type
    boolean
  • MarketplaceService:OpenShop(player: Player)
    Opens a personalized in-game Shop for the given player.
    • Capabilities: PromptExternalPurchase
    Parameters
    ParameterDescription
    player: Player
    The Player for whom to open the shop. If called from a LocalScript, this must be the local player.
  • MarketplaceService:PerformBulkPurchase(orderRequest: { [string]: any },options: { [string]: any },): { [string]: any }
    • Yields
    • Roblox script security
    Parameters
    Parameter
    orderRequest: { [string]: any }
    options: { [string]: any }
  • MarketplaceService:PerformCancelSubscription(subscriptionId: string)
    • Yields
    • Roblox script security
    Parameters
    Parameter
    subscriptionId: string
  • MarketplaceService:PerformPurchase(infoType: Enum.InfoType,productId: number,expectedPrice: number,requestId: string,isRobloxPurchase: boolean,collectibleItemId: string? = "",collectibleProductId: string? = "",idempotencyKey: string? = "",purchaseAuthToken: string? = "",timedOptionsDays: number? = 0,purchasePayload: string? = "",purchaseOptions: { [string]: any }? = nil,): { [string]: any }
    • Yields
    • Roblox script security
    Parameters
    Parameter
    infoType: Enum.InfoType
    productId: number
    expectedPrice: number
    requestId: string
    isRobloxPurchase: boolean
    collectibleItemId: string? = ""
    collectibleProductId: string? = ""
    idempotencyKey: string? = ""
    purchaseAuthToken: string? = ""
    timedOptionsDays: number? = 0
    purchasePayload: string? = ""
    purchaseOptions: { [string]: any }? = nil
  • MarketplaceService:PerformPurchaseV2(infoType: Enum.InfoType,productId: number,expectedPrice: number,requestId: string,isRobloxPurchase: boolean,collectiblesProductDetails: { [string]: any },): { [string]: any }
    • Yields
    • Roblox script security
    Parameters
    Parameter
    infoType: Enum.InfoType
    productId: number
    expectedPrice: number
    requestId: string
    isRobloxPurchase: boolean
    collectiblesProductDetails: { [string]: any }
  • MarketplaceService:PerformSubscriptionPurchase(subscriptionId: string): string
    • Yields
    • Roblox script security
    Parameters
    Parameter
    subscriptionId: string
    Returns
    Type
    string
  • MarketplaceService:PerformSubscriptionPurchaseV2(subscriptionId: string,paymentProvider: string,)
    • Yields
    • Roblox script security
    Parameters
    Parameter
    subscriptionId: string
    paymentProvider: string
  • MarketplaceService:PerformSubscriptionPurchaseV3Async(productType: string,productId: string,paymentProvider: string,paymentSessionId: string,referrerId: number?,)
    • Yields
    • Roblox script security
    Parameters
    Parameter
    productType: string
    productId: string
    paymentProvider: string
    paymentSessionId: string
    referrerId: number?
  • MarketplaceService:PerformSubscriptionPurchaseWithRobuxAsync(subscriptionId: string,priceInRobux: number,)
    • Yields
    • Roblox script security
    Parameters
    Parameter
    subscriptionId: string
    priceInRobux: number
  • MarketplaceService:PlayerCanMakePurchases(player: Instance): boolean
    • Roblox script security
    Parameters
    Parameter
    player: Instance
    Returns
    Type
    boolean
  • MarketplaceService:PlayerOwnsAssetAsync(player: Instance,assetId: number,): boolean
    Returns whether the given user has the given asset.
    • Yields
    • Capabilities: AssetRead
    Parameters
    ParameterDescription
    player: Instance
    The Player whose inventory is tested for ownership of the given asset.
    assetId: number
    The asset ID for which the given player's inventory is tested.
    Returns
    TypeDescription
    boolean
    Indicates whether the given player's inventory contains the given asset.
  • MarketplaceService:PlayerOwnsBundleAsync(player: Player,bundleId: number,): boolean
    Returns whether the given player owns the given bundle.
    • Yields
    • Capabilities: AssetRead
    Parameters
    ParameterDescription
    player: Player
    The Player whose inventory is tested for ownership of the given bundle.
    bundleId: number
    The bundle ID for which the given player's inventory is tested.
    Returns
    TypeDescription
    boolean
    Indicates whether the given player's inventory contains the given bundle.
  • MarketplaceService:PrepareCollectiblesPurchase(player: Instance,assetId: number,collectibleItemId: string,collectibleItemInstanceId: string,collectibleProductId: string,expectedPrice: number,)
    • Roblox script security
    Parameters
    Parameter
    player: Instance
    assetId: number
    collectibleItemId: string
    collectibleItemInstanceId: string
    collectibleProductId: string
    expectedPrice: number
  • MarketplaceService:PromptBulkPurchase(player: Player,lineItems: { any },options: { [string]: any },)
    Prompts a user to purchase multiple avatar items with the given assetId or bundleId.
    • Capabilities: PromptExternalPurchase
    Parameters
    ParameterDescription
    player: Player
    The user to prompt to purchase items.
    lineItems: { any }
    An array of avatar items to be included in the bulk purchase. Each line item contains the following structure:
    {   Type: MarketplaceProductType,   Id: string,   PurchaseOptions: { {Type: PurchaseOption, Value: number?} }? }
    Each line item contains the following pairs:
    • Type: The corresponding MarketplaceProductType (Enum).
    • Id: The ID of the asset or bundle.
    • PurchaseOptions: Optional. An array containing a single purchase option to display in the prompt. If omitted, the permanent purchase is prompted. See the PurchaseOptions section below for details.
    options: { [string]: any }
    Not available at this time.
  • MarketplaceService:PromptBundlePurchase(player: Instance, bundleId: number)
    Prompts a user to purchase a bundle with the given bundleId.
    • Capabilities: PromptExternalPurchase
    Parameters
    ParameterDescription
    player: Instance
    The Player to prompt.
    bundleId: number
    The ID of the bundle to purchase.
  • MarketplaceService:PromptCancelSubscription(user: Player,subscriptionId: string,)
    Prompts a user to cancel a subscription for the given subscriptionId.
    • Capabilities: PromptExternalPurchase
    Parameters
    ParameterDescription
    user: Player
    The Player to prompt.
    subscriptionId: string
    The ID of the subscription to cancel.
  • MarketplaceService:PromptCollectiblesPurchase(player: Instance,assetId: number,collectibleItemId: string,collectibleItemInstanceId: string,collectibleProductId: string,expectedPrice: number,)
    • Roblox script security
    Parameters
    Parameter
    player: Instance
    assetId: number
    collectibleItemId: string
    collectibleItemInstanceId: string
    collectibleProductId: string
    expectedPrice: number
  • MarketplaceService:PromptGamePassPurchase(player: Instance, gamePassId: number)
    Prompts a user to purchase a pass with the given gamePassId.
    • Capabilities: PromptExternalPurchase
    Parameters
    ParameterDescription
    player: Instance
    The Player to prompt.
    gamePassId: number
    The pass ID to purchase. This is the TargetId returned by GetProductInfo() when InfoType is GamePass. It is not the pass's asset ID and not its ProductId.
  • MarketplaceService:PromptNativePurchase(player: Instance, productId: string)
    • Roblox script security
    Parameters
    Parameter
    player: Instance
    productId: string
  • MarketplaceService:PromptNativePurchaseWithLocalPlayer(productId: string)
    • Roblox script security
    Parameters
    Parameter
    productId: string
  • MarketplaceService:PromptNativePurchaseWithLocalPlayerWithPaymentSessionId(productId: string,paymentSessionId: string,)
    • Roblox script security
    Parameters
    Parameter
    productId: string
    paymentSessionId: string
  • MarketplaceService:PromptNativePurchaseWithPaymentSessionId(player: Instance,productId: string,paymentSessionId: string,)
    • Roblox script security
    Parameters
    Parameter
    player: Instance
    productId: string
    paymentSessionId: string
  • MarketplaceService:PromptProductPurchase(player: Instance,productId: number,equipIfPurchased: boolean? = true,currencyType: Enum.CurrencyType? = Enum.CurrencyType.Default,)
    Prompts a user to purchase a developer product with the given productId.
    • Capabilities: PromptExternalPurchase
    Parameters
    ParameterDescription
    player: Instance
    The Player to prompt.
    productId: number
    The ID of the developer product to purchase.
    equipIfPurchased: boolean? = true
    Ignored.
    currencyType: Enum.CurrencyType? = Enum.CurrencyType.Default
    Ignored.
  • MarketplaceService:PromptPurchase(player: Instance,assetId: number,equipIfPurchased: boolean? = true,currencyType: Enum.CurrencyType? = Enum.CurrencyType.Default,)
    Prompts a user to purchase an item with the given assetId. Does not work for USD Creator Store purchases.
    • Capabilities: PromptExternalPurchase
    Parameters
    ParameterDescription
    player: Instance
    The Player to prompt.
    assetId: number
    The ID of the asset to purchase.
    equipIfPurchased: boolean? = true
    Ignored.
    currencyType: Enum.CurrencyType? = Enum.CurrencyType.Default
    Ignored.
  • MarketplaceService:PromptRobloxPurchase(assetId: number,equipIfPurchased: boolean,)
    • Roblox script security
    Parameters
    Parameter
    assetId: number
    equipIfPurchased: boolean
  • MarketplaceService:PromptRobloxSubscriptionPurchase(user: Player)
    Prompts a user to purchase a Roblox Plus subscription.
    • Capabilities: PromptExternalPurchase
    Parameters
    ParameterDescription
    user: Player
    The Player to be prompted to purchase Roblox Plus.
  • MarketplaceService:PromptRobuxTransferAsync(sender: Player,receiverUserId: number,amount: number,): string
    Initiates a Robux transfer from the sender to another user.
    • Yields
    • Capabilities: PromptExternalPurchase
    Parameters
    ParameterDescription
    sender: Player
    The Player initiating the transfer. Must be a valid player currently in the server.
    receiverUserId: number
    The UserId of the user who will receive the Robux.
    amount: number
    The amount of Robux to transfer. Must be a positive integer.
    Returns
    TypeDescription
    string
    A string transferRequestId that uniquely identifies this transfer request. Use this ID to correlate with receipts delivered through BindReceiptHandler.
  • MarketplaceService:PromptSubscriptionPurchase(user: Player,subscriptionId: string,)
    Prompts a user to purchase a subscription for the given subscriptionId.
    • Capabilities: PromptExternalPurchase
    Parameters
    ParameterDescription
    user: Player
    The Player object to be prompted to subscribe.
    subscriptionId: string
    The ID of the subscription to subscribe to.
  • MarketplaceService:PromptThirdPartyPurchase(player: Instance, productId: string)
    • Local user security
    Parameters
    Parameter
    player: Instance
    productId: string
  • MarketplaceService:PromptVIPServerPurchase(player: Player)
    • Capabilities: PromptExternalPurchase
    Parameters
    Parameter
    player: Player
  • MarketplaceService:RankProductsAsync(productIdentifiers: { any }): { any }
    Takes a list of product IDs and returns a personalized ordered list of those products.
    • Yields
    Parameters
    ParameterDescription
    productIdentifiers: { any }
    An array of objects identifying the products you want to rank. This array can include up to 50 items. Each ProductIdentifier has:
    • InfoType: Enum.InfoType
    • Must be either InfoType.GamePass or InfoType.Product.
    • Id: number
    • The ID of the game pass or developer product.
    local ProductIdentifier = {     InfoType = Enum.InfoType.GamePass,     Id = 123456 }
    Returns
    TypeDescription
    { any }
    The array of ranked items in a personalized order for the current user. Each array has:
    • ProductIdentifier: The corresponding ID from the input array.
    • ProductInfo: The standard product info dictionary returned by GetProductInfoAsync.
  • MarketplaceService:RecommendTopProductsAsync(infoTypes: { any }): { any }
    • Takes an array of InfoType and returns up to 50 items representing the products a user is most likely to engage with and purchase.
    • Yields
    Parameters
    ParameterDescription
    infoTypes: { any }
    An array of InfoType values specifying the types of product to retrieve recommendations for. Supported InfoTypes: InfoType.GamePass, InfoType.Product.
    local infoTypes = {     Enum.InfoType.GamePass,     Enum.InfoType.Product }
    Returns
    TypeDescription
    { any }
    A ranked list of up to 50 items the user is most likely to engage with, based on the provided InfoTypes. If no recommendations can be determined, the method returns an empty list.
  • MarketplaceService:RedeemGamePassFreeTrial(user: Player,gamePassId: number,startTime: string,endTime: string,)
    • Roblox script security
    Parameters
    Parameter
    user: Player
    gamePassId: number
    startTime: string
    endTime: string
  • MarketplaceService:RefreshBulkPurchase(batchPurchaseAuthToken: string,options: { [string]: any }? = nil,)
    • Roblox script security
    Parameters
    Parameter
    batchPurchaseAuthToken: string
    options: { [string]: any }? = nil
  • MarketplaceService:ReportAssetSale(assetId: string, robuxAmount: number)
    • Roblox script security
    Parameters
    Parameter
    assetId: string
    robuxAmount: number
  • MarketplaceService:ReportRobuxUpsellStarted()
    • Roblox script security
  • MarketplaceService:SignalAssetTypePurchased(player: Instance,assetType: Enum.AssetType,)
    • Roblox script security
    Parameters
    Parameter
    player: Instance
    assetType: Enum.AssetType
  • MarketplaceService:SignalCheckPlayerHasRobloxSubscription()
    • Roblox script security
  • MarketplaceService:SignalClientPurchaseSuccess(ticket: string,playerId: number,productId: number,)
    • Roblox script security
    Parameters
    Parameter
    ticket: string
    playerId: number
    productId: number
  • MarketplaceService:SignalMockPurchasePremium()
    • Roblox script security
  • MarketplaceService:SignalMockPurchaseRobloxSubscription()
    • Roblox script security
  • MarketplaceService:SignalPromptBulkPurchaseFinished(status: Enum.MarketplaceBulkPurchasePromptStatus,results: { [string]: any },)
    • Roblox script security
  • MarketplaceService:SignalPromptBundlePurchaseFinished(player: Instance,bundleId: number,success: boolean,)
    • Roblox script security
    Parameters
    Parameter
    player: Instance
    bundleId: number
    success: boolean
  • MarketplaceService:SignalPromptGamePassPurchaseFinished(player: Instance,gamePassId: number,success: boolean,)
    • Roblox script security
    Parameters
    Parameter
    player: Instance
    gamePassId: number
    success: boolean
  • MarketplaceService:SignalPromptPremiumPurchaseFinished(didTryPurchasing: boolean)
    • Roblox script security
    Parameters
    Parameter
    didTryPurchasing: boolean
  • MarketplaceService:SignalPromptProductPurchaseFinished(userId: number,productId: number,success: boolean,)
    • Roblox script security
    Parameters
    Parameter
    userId: number
    productId: number
    success: boolean
  • MarketplaceService:SignalPromptPurchaseFinished(player: Instance,assetId: number,success: boolean,)
    • Roblox script security
    Parameters
    Parameter
    player: Instance
    assetId: number
    success: boolean
  • MarketplaceService:SignalPromptRobloxSubscriptionPurchaseFinished(subscriptionId: string,didTryPurchasing: boolean,)
    • Roblox script security
    Parameters
    Parameter
    subscriptionId: string
    didTryPurchasing: boolean
  • MarketplaceService:SignalPromptSubscriptionPurchaseFinished(subscriptionId: string,didTryPurchasing: boolean,)
    • Roblox script security
    Parameters
    Parameter
    subscriptionId: string
    didTryPurchasing: boolean
  • MarketplaceService:SignalRobuxTransferCompleted(userId: number)
    • Roblox script security
    Parameters
    Parameter
    userId: number
  • MarketplaceService:SignalServerLuaDialogClosed(value: boolean)
    • Roblox script security
    Parameters
    Parameter
    value: boolean
  • MarketplaceService:SignalUserSubscriptionStatusChanged(subscriptionId: string)
    • Roblox script security
    Parameters
    Parameter
    subscriptionId: string
  • MarketplaceService:UserOwnsGamePassAsync(userId: User,gamePassId: number,): boolean
    Returns true if the player with the given UserId owns the pass with the given gamePassId.
    • Yields
    • Capabilities: AssetRead
    Parameters
    ParameterDescription
    userId: User
    The UserId of the Player whose inventory you're checking.
    gamePassId: number
    The pass ID you want to check for. Not to be confused with an asset ID.
    Returns
    TypeDescription
    boolean
    Whether the user owns the pass.
  • MarketplaceService:GetProductInfo(assetId: number,infoType: Enum.InfoType? = Enum.InfoType.Asset,): { [string]: any }
    Deprecated: This method has been superseded by GetProductInfoAsync().
    Returns the product information of an asset using its asset ID.
    • Deprecated
    • Yields
    • Capabilities: AssetRead
    Parameters
    ParameterDescription
    assetId: number
    The asset ID of the specified product.
    infoType: Enum.InfoType? = Enum.InfoType.Asset
    An InfoType enum value specifying the type of information being retrieved.
    Returns
    TypeDescription
    { [string]: any }
    A dictionary containing information about the queried item, described in the previous tables.

    Use GetProductInfoAsync instead.

  • MarketplaceService:PlayerOwnsAsset(player: Instance, assetId: number): boolean
    Deprecated: This method has been superseded by PlayerOwnsAssetAsync().
    Returns whether the given user has the given asset.
    • Deprecated
    • Yields
    • Capabilities: AssetRead
    Parameters
    ParameterDescription
    player: Instance
    The Player whose inventory is tested for ownership of the given asset.
    assetId: number
    The asset ID for which the given player's inventory is tested.
    Returns
    TypeDescription
    boolean
    Indicates whether the given player's inventory contains the given asset.

    Use PlayerOwnsAssetAsync instead.

  • MarketplaceService:PlayerOwnsBundle(player: Player, bundleId: number): boolean
    Deprecated: This method has been superseded by PlayerOwnsBundleAsync().
    Returns whether the given player owns the given bundle.
    • Deprecated
    • Yields
    • Capabilities: AssetRead
    Parameters
    ParameterDescription
    player: Player
    The Player whose inventory is tested for ownership of the given bundle.
    bundleId: number
    The bundle ID for which the given player's inventory is tested.
    Returns
    TypeDescription
    boolean
    Indicates whether the given player's inventory contains the given bundle.

    Use PlayerOwnsBundleAsync instead.

  • MarketplaceService:PromptPremiumPurchase(player: Instance)
    Deprecated: This method has been superseded by PromptRobloxSubscriptionPurchase().
    Prompts a user to purchase Roblox Premium.
    • Deprecated
    • Capabilities: PromptExternalPurchase
    Parameters
    ParameterDescription
    player: Instance
    The user being prompted to purchase Premium.

    Use PromptRobloxSubscriptionPurchase instead.

Events64

Inherited fromObject1
Inherited fromInstance9
Defined byMarketplaceService54

Callbacks1

Defined byMarketplaceService1
  • MarketplaceService.ProcessReceipt: (receiptInfo: { [string]: any }) -> Enum.ProductPurchaseDecision
    A callback to process receipts of developer product purchases.
    • Capabilities: Monetization
    Parameters
    ParameterDescription
    receiptInfo: { [string]: any }
    The receiptInfo table passed to this callback contains the following data:
    • PurchaseId — A unique identifier for the specific purchase.
    • PlayerId — The user ID of the user who made the purchase.
    • ProductId — The ID of the purchased product.
    • PlaceIdWherePurchased — The place ID in which the purchase was made. Depending on where the user is during gameplay, the purchase place's ID can be the same as or different from the current place's ID.
    • CurrencySpent — The amount of currency spent in the transaction.
    • CurrencyType — The type of currency spent in the purchase; always CurrencyType.Robux.
    • ProductPurchaseChannel — How the user acquired the developer product. One of ProductPurchaseChannel.
    Returns
    TypeDescription
    Enum.ProductPurchaseDecision
    An enum that represents how the developer product receipt was processed.
    • PurchaseGranted:
    • Indicates that the experience successfully granted the player the developer product.
    • Indicates to Roblox that the developer product sale was successful.
    • NotProcessedYet:
    • Indicates that the experience failed to grant the player the developer product.