docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ProductDescription

    A common format for store subsystems to use to describe available In App Purchases to UnityPurchasing, including purchase state via Receipt and Transaction Identifiers.

    Inheritance
    object
    ProductDescription
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: UnityEngine.Purchasing.Extension
    Assembly: solution.dll
    Syntax
    public class ProductDescription

    Constructors

    Name Description
    ProductDescription(string, ProductMetadata)

    Parametrized Constructor. Without transaction data.

    ProductDescription(string, ProductMetadata, string, string)

    Parametrized Constructor. With transaction data.

    ProductDescription(string, ProductMetadata, string, string, ProductType)

    Parametrized Constructor. With the transaction data and type.

    Fields

    Name Description
    type

    The type of the product, with respect to the store.

    If this ProductDescription was explicitly queried by Unity IAP then it is not necessary to specify a type since it is already known from the product definition.

    Otherwise, if this ProductDescription is unknown, type must be correctly so the product can be handled correctly.

    Properties

    Name Description
    metadata

    The Metadate of the product. Contains store interface information.

    receipt

    The receipt provided on product purchase.

    storeSpecificId

    The store-specific id of this product.

    transactionId

    The transaction id of the purchase of this product.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023