docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IDetailedStoreListener

    Interface for receiving detailed purchase failure information in Unity IAP.

    Inherited Members
    IStoreListener.OnInitialized(IStoreController, IExtensionProvider)
    IStoreListener.OnInitializeFailed(InitializationFailureReason)
    IStoreListener.OnInitializeFailed(InitializationFailureReason, string)
    IStoreListener.ProcessPurchase(PurchaseEventArgs)
    IStoreListener.OnPurchaseFailed(Product, PurchaseFailureReason)
    Namespace: UnityEngine.Purchasing
    Assembly: Unity.Purchasing.dll
    Syntax
    [Obsolete("This API is deprecated. Please upgrade to the new APIs introduced in IAP v5. For more information, visit the IAP manual: https://docs.unity.com/ugs/en-us/manual/iap/manual/upgrade-to-iap-v5", false)]
    public interface IDetailedStoreListener : IStoreListener

    Methods

    OnPurchaseFailed(Product, PurchaseFailureDescription)

    A purchase failed with a detailed Failure Description. PurchaseFailureDescription contains : productId, PurchaseFailureReason and an error message

    Declaration
    void OnPurchaseFailed(Product product, PurchaseFailureDescription failureDescription)
    Parameters
    Type Name Description
    Product product

    The product that was attempted to be purchased.

    PurchaseFailureDescription failureDescription

    The Purchase Failure Description.

    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)