docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class UnifiedReceipt

    I can unpack JSON Product.receipt values.

    See also https://docs.unity3d.com/Manual/UnityIAPPurchaseReceipts.html

    Inheritance
    object
    UnifiedReceipt
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Purchasing
    Assembly: Unity.Purchasing.dll
    Syntax
    [Serializable]
    public class UnifiedReceipt
    Examples
    var unifiedReceipt = JsonUtility.FromJson<UnifiedReceipt>(purchEvtArg.purchasedProduct.receipt)
    Debug.LogFormat("{0} {1} {2}", unifiedReceipt.Payload, unifiedReceipt.Store, unifiedReceipt.TransactionID);

    Fields

    Payload

    The platform-specific receipt.

    Declaration
    public string Payload
    Field Value
    Type Description
    string

    Store

    The name of the store making the receipt.

    Declaration
    public string Store
    Field Value
    Type Description
    string

    TransactionID

    The unique identifier of the transaction.

    Declaration
    public string TransactionID
    Field 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)