docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IStorePurchaseFetchCallback

    A public interface for a class that handles callbacks for fetching existing purchases from a Store.

    Namespace: UnityEngine.Purchasing
    Assembly: Unity.Purchasing.dll
    Syntax
    public interface IStorePurchaseFetchCallback

    Methods

    OnAllPurchasesRetrieved(IReadOnlyList<Order>)

    Inform Unity Purchasing of all active or pending purchases.

    Declaration
    void OnAllPurchasesRetrieved(IReadOnlyList<Order> orders)
    Parameters
    Type Name Description
    IReadOnlyList<Order> orders

    All active or pending purchased products.

    OnPurchasesRetrievalFailed(PurchasesFetchFailureDescription)

    Inform Unity Purchasing of a failure to retrieve purchases.

    Declaration
    void OnPurchasesRetrievalFailed(PurchasesFetchFailureDescription failureReason)
    Parameters
    Type Name Description
    PurchasesFetchFailureDescription failureReason

    The reason that purchases could not be retrieved.

    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)