Class FailedOrder
A model representing a failed order of a cart.
Inherited Members
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 |