docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PurchaseConfig

    The configuration of a purchase request for a product registered to the game.

    Inheritance
    object
    JsObject
    PurchaseConfig
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Meta.InstantGames.v8
    Assembly: Unity.Meta.InstantGames.Sdk.v8.dll
    Syntax
    public class PurchaseConfig : JsObject

    Constructors

    PurchaseConfig(string, string)

    Creates a new instance of PurchaseConfig

    Declaration
    public PurchaseConfig(string productID, string developerPayload = null)
    Parameters
    Type Name Description
    string productID

    The identifier of the product to purchase

    string developerPayload

    An optional developer-specified payload, to be included in the returned purchase's signed request.

    Properties

    DeveloperPayload

    An optional developer-specified payload, to be included in the returned purchase's signed request.

    Declaration
    public string DeveloperPayload { get; }
    Property Value
    Type Description
    string

    ProductID

    The identifier of the product to purchase

    Declaration
    public string ProductID { get; }
    Property Value
    Type Description
    string
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)