docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Product

    May be purchased as an In App Purchase.

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

    Properties

    Name Description
    appleOriginalTransactionID

    A unique identifier for this Apple product's original transaction.

    This will only be set when the Apple product was purchased during this session.

    appleProductIsRestored

    Indicates if this Apple product is restored.

    availableToPurchase

    Determine if this product is available to purchase according to the store subsystem.

    This will be false if the product's identifier is unknown, incorrect or otherwise disabled with the store provider (ie Apple, Google et al).

    If this is false, purchase attempts will immediately fail.

    definition

    Basic immutable product properties.

    hasReceipt

    Owned Non Consumables and Subscriptions should always have receipts. Consumable's receipts are not persisted between App restarts unless it has a pending transaction. Once a consumable has been acknowledged (ConfirmPendingPurchase) the receipt is removed.

    metadata

    Localized metadata provided by the store system.

    receipt

    The purchase receipt for this product, if owned. For consumable purchases, this will be the most recent purchase receipt. Consumable's receipts are not set between app restarts unless it has a pending transaction. Once a consumable has been acknowledged (ConfirmPendingPurchase) the receipt is removed. Receipts is in JSON format.

    transactionID

    A unique identifier for this product's transaction. This will only be set when the product was purchased during this session. Consumable's transactionID are not set between app restarts unless it has a pending transaction. Once a consumable has been acknowledged (ConfirmPendingPurchase) the transactionID is removed.

    Methods

    Name Description
    Equals(object)

    Check if this product is equal to another.

    GetHashCode()

    Get the unique Hash representing the 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