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.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()

    Declaration
    public TransactionFailedEvent()

    Properties

    FailureReason

    (Required) The reason why this transaction failed.

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

    Methods

    Validate()

    Note that failing validation will not prevent event serialisation or upload. This method is intended to produce warning logs to assist in implementation and debugging. Events will still be validated properly by the server on reaching it.

    Declaration
    public override void Validate()
    Overrides
    TransactionEvent.Validate()
    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)