docs.unity3d.com
    Show / Hide Table of Contents

    Class UnityPurchasing

    The core abstract implementation for Unity Purchasing.

    Inheritance
    Object
    UnityPurchasing
    Namespace: UnityEngine.Purchasing
    Syntax
    public abstract class UnityPurchasing : object

    Methods

    ClearTransactionLog()

    This is useful in certain test scenarios, such as repeatedly testing an App's behaviour when purchases are restored.

    This is a static method since developers may wish to clear the log before initialising IAP.

    Declaration
    public static void ClearTransactionLog()

    Initialize(IStoreListener, ConfigurationBuilder)

    The main initialization call for Unity Purchasing.

    Declaration
    public static void Initialize(IStoreListener listener, ConfigurationBuilder builder)
    Parameters
    Type Name Description
    IStoreListener listener

    The IStoreListener to receive callbacks for future transactions

    ConfigurationBuilder builder

    The ConfigurationBuilder containing the product definitions mapped to stores

    In This Article
    • Methods
      • ClearTransactionLog()
      • Initialize(IStoreListener, ConfigurationBuilder)
    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