docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PurchaseFailureDescription

    Represents a failed purchase as described by a purchasing service.

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

    Constructors

    PurchaseFailureDescription(string, PurchaseFailureReason, string)

    Parametrized Constructor.

    Declaration
    public PurchaseFailureDescription(string productId, PurchaseFailureReason reason, string message)
    Parameters
    Type Name Description
    string productId

    The id of the product.

    PurchaseFailureReason reason

    The reason for the purchase failure

    string message

    The message containing details about the failed purchase.

    Properties

    message

    The message containing details about the failed purchase.

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

    productId

    The store specific product ID.

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

    reason

    The reason for the failure.

    Declaration
    public PurchaseFailureReason reason { get; }
    Property Value
    Type Description
    PurchaseFailureReason
    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)