docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class FailedOrder

    A model representing a failed order of a cart.

    Inheritance
    object
    Order
    FailedOrder
    Inherited Members
    Order.CartOrdered
    Order.Info
    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
    public class FailedOrder : Order

    Constructors

    FailedOrder(ICart, PurchaseFailureReason, string)

    Creates a new FailedOrder with empty OrderInfo.

    Declaration
    public FailedOrder(ICart cart, PurchaseFailureReason reason, string details)
    Parameters
    Type Name Description
    ICart cart

    The cart ordered.

    PurchaseFailureReason reason

    The reason the order failed to be purchased.

    string details

    The message containing details about the failure.

    FailedOrder(Order, PurchaseFailureReason, string)

    Creates a new FailedOrder from an existing order.

    Declaration
    public FailedOrder(Order order, PurchaseFailureReason reason, string details)
    Parameters
    Type Name Description
    Order order

    The original order that failed.

    PurchaseFailureReason reason

    The reason the order failed.

    string details

    The message containing details about the failure.

    Properties

    Details

    Message containing details about the failed order. Read only.

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

    FailureReason

    The reason the order failed to be purchased.

    Declaration
    public PurchaseFailureReason FailureReason { 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)