namespace UnityEngine.Purchasing
{
///
/// A purchase that failed including the product under purchase,
/// the reason for the failure and any additional information.
///
public class PurchaseFailedEventArgs
{
internal PurchaseFailedEventArgs(Product purchasedProduct, PurchaseFailureReason reason, string message)
{
this.purchasedProduct = purchasedProduct;
this.reason = reason;
this.message = message;
}
///
/// The product which failed to be purchased.
///
public Product purchasedProduct { get; private set; }
///
/// The reason for the failure.
///
public PurchaseFailureReason reason { get; private set; }
///
/// A message containing details about the failure.
///
public string message { get; private set; }
}
}