docs.unity3d.com
    Show / Hide Table of Contents

    Interface IWindowsIAPCallback

    Interface for Universal Windows Platform purchasing callbacks.

    Namespace: UnityEngine.Purchasing.Default
    Syntax
    public interface IWindowsIAPCallback

    Methods

    log(String)

    Call used to log messsages during the callbacks in this interface.

    Declaration
    void log(string message)
    Parameters
    Type Name Description
    String message

    The message to be logged.

    logError(String)

    Call used to log various errors during the callbacks in this interface.

    Declaration
    void logError(string error)
    Parameters
    Type Name Description
    String error

    The error message to be logged.

    OnProductListError(String)

    Callback received when receiving an error when attempting to get the list of products.

    Declaration
    void OnProductListError(string message)
    Parameters
    Type Name Description
    String message

    The error message explaining the failure.

    OnProductListReceived(WinProductDescription[])

    Callback received when receiving the list of products.

    Declaration
    void OnProductListReceived(WinProductDescription[] winProducts)
    Parameters
    Type Name Description
    WinProductDescription[] winProducts

    The products retrieved.

    OnPurchaseFailed(String, String)

    Callback received after making a failed purchase.

    Declaration
    void OnPurchaseFailed(string productId, string error)
    Parameters
    Type Name Description
    String productId

    The ID of the product purchased.

    String error

    The error explaining the failure.

    OnPurchaseSucceeded(String, String, String)

    Callback received after making a successful purchase.

    Declaration
    void OnPurchaseSucceeded(string productId, string receipt, string transactionId)
    Parameters
    Type Name Description
    String productId

    The ID of the product purchased.

    String receipt

    The receipt of the purchase.

    String transactionId

    The ID of the transaction event.

    Back to top
    Terms of use
    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