Class PurchaseFailureDescription
Represents a failed purchase as described by a purchasing service.
Inherited Members
Namespace: UnityEngine.Purchasing
Assembly: Unity.Purchasing.dll
Syntax
public class PurchaseFailureDescription
Constructors
PurchaseFailureDescription(CartItem, PurchaseFailureReason, string)
Parametrized Constructor.
Declaration
public PurchaseFailureDescription(CartItem item, PurchaseFailureReason reason, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| CartItem | item | The cart item. |
| PurchaseFailureReason | reason | The reason for the purchase failure |
| string | message | The message containing details about the failed purchase. |
Properties
item
The cart item wrapping the product and quantity.
Declaration
public CartItem item { get; }
Property Value
| Type | Description |
|---|---|
| CartItem |
message
The message containing details about the failed purchase.
Declaration
public string message { get; }
Property Value
| Type | Description |
|---|---|
| string |
product
The product.
Declaration
[Obsolete("Use item.Product instead")]
public Product product { get; }
Property Value
| Type | Description |
|---|---|
| Product |
reason
The reason for the failure.
Declaration
public PurchaseFailureReason reason { get; }
Property Value
| Type | Description |
|---|---|
| PurchaseFailureReason |