docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IStorePurchaseCallback

    A public interface for a class that handles callbacks for purchasing products from a Store.

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

    Methods

    OnPurchaseDeferred(DeferredOrder)

    Notify a deferred purchase with associated details.

    Declaration
    void OnPurchaseDeferred(DeferredOrder deferredOrder)
    Parameters
    Type Name Description
    DeferredOrder deferredOrder

    The deferred order that was made.

    OnPurchaseFailed(FailedOrder)

    Notify a failed purchase with associated details.

    Declaration
    void OnPurchaseFailed(FailedOrder failedOrder)
    Parameters
    Type Name Description
    FailedOrder failedOrder

    The object detailing the purchase failure

    OnPurchaseSucceeded(PendingOrder)

    Inform Unity Purchasing of a purchase.

    Declaration
    void OnPurchaseSucceeded(PendingOrder order)
    Parameters
    Type Name Description
    PendingOrder order

    The pending order that was made.

    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)