docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method OnPurchaseFailed

    OnPurchaseFailed(Product, PurchaseFailureReason)

    Implementation of UnityEngine.Purchasing.IStoreListener.OnPurchaseFailed.Purchasing.IStoreListener.OnPurchaseFailed indicating a purchase failed with specified reason. Send this event to any appropriate registered IAPButtons and IAPListeners. Logs an error if there are no appropriate registered handlers.

    Declaration
    public void OnPurchaseFailed(Product product, PurchaseFailureReason reason)
    Parameters
    Type Name Description
    Product product

    What failed to purchase

    PurchaseFailureReason reason

    Why the purchase failed

    Implements
    IStoreListener.OnPurchaseFailed(Product, PurchaseFailureReason)

    OnPurchaseFailed(Product, PurchaseFailureDescription)

    Implementation of UnityEngine.Purchasing.IDetailedStoreListener.OnPurchaseFailed.Purchasing.IDetailedStoreListener.OnPurchaseFailed indicating a purchase failed with a detailed failure description. Send this event to any appropriate registered IAPButtons and IAPListeners. Logs an error if there are no appropriate registered handlers.

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

    What failed to purchase

    PurchaseFailureDescription description

    Why the purchase failed

    Implements
    IDetailedStoreListener.OnPurchaseFailed(Product, PurchaseFailureDescription)
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023