docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TransactionFailedEvent

    Use this class to record transactionFailed events.

    For more information about the transactionFailed event, see the documentation page: https://docs.unity.com/ugs/en-us/manual/analytics/manual/record-transaction-events

    Inheritance
    object
    Event
    TransactionEvent
    TransactionFailedEvent
    Inherited Members
    TransactionEvent.TransactionName
    TransactionEvent.TransactionId
    TransactionEvent.TransactionType
    TransactionEvent.PaymentCountry
    TransactionEvent.ProductId
    TransactionEvent.StoreItemSkuId
    TransactionEvent.StoreItemId
    TransactionEvent.StoreId
    TransactionEvent.StoreSourceId
    TransactionEvent.TransactionReceipt
    TransactionEvent.TransactionReceiptSignature
    TransactionEvent.TransactionServer
    TransactionEvent.TransactorID
    TransactionEvent.SpentRealCurrency
    TransactionEvent.SpentVirtualCurrencies
    TransactionEvent.SpentItems
    TransactionEvent.ReceivedRealCurrency
    TransactionEvent.ReceivedVirtualCurrencies
    TransactionEvent.ReceivedItems
    TransactionEvent.Reset()
    Event.SetParameter(string, string)
    Event.SetParameter(string, bool)
    Event.SetParameter(string, int)
    Event.SetParameter(string, long)
    Event.SetParameter(string, float)
    Event.SetParameter(string, double)
    Event.SetParameter(string, DateTime)
    Event.ParameterHasBeenSet(string)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Services.Analytics
    Assembly: Unity.Services.Analytics.dll
    Syntax
    public class TransactionFailedEvent : TransactionEvent

    Constructors

    TransactionFailedEvent()

    Creates a new TransactionFailedEvent instance that you can populate with the relevant data.

    Declaration
    public TransactionFailedEvent()

    Properties

    FailureReason

    (Required) The reason why this transaction failed.

    Declaration
    public string FailureReason { set; }
    Property Value
    Type Description
    string

    Methods

    Validate()

    The Validate method is called internally during serialization to ensure that all required parameters have been set. If any required parameters are missing, warnings are recorded to the console.

    Declaration
    public override void Validate()
    Overrides
    TransactionEvent.Validate()
    In This Article
    Back to top
    Copyright © 2026 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)