docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class UnityPurchasing

    The core abstract implementation for Unity Purchasing.

    Inheritance
    object
    UnityPurchasing
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Purchasing
    Assembly: Unity.Purchasing.dll
    Syntax
    [Obsolete("This API is deprecated. Please upgrade to the new APIs introduced in IAP v5. For more information, visit the IAP manual: https://docs.unity.com/ugs/en-us/manual/iap/manual/upgrade-to-iap-v5", false)]
    public class UnityPurchasing

    Methods

    Initialize(IStoreListener, ConfigurationBuilder)

    The main initialization call for Unity Purchasing.

    Declaration
    public static void Initialize(IStoreListener storeListener, ConfigurationBuilder configurationBuilder)
    Parameters
    Type Name Description
    IStoreListener storeListener

    The IDetailedStoreListener to receive callbacks for future transactions

    ConfigurationBuilder configurationBuilder

    The ConfigurationBuilder containing the product definitions mapped to stores

    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)