docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class StandardPurchasingModule

    Module for the standard stores covered by Unity; Apple App store, Google Play and more.

    Inheritance
    object
    StandardPurchasingModule
    Implements
    IAndroidStoreSelection
    IStoreConfiguration
    Namespace: UnityEngine.Purchasing
    Assembly: UnityEngine.Purchasing.Stores.dll
    Syntax
    public class StandardPurchasingModule : AbstractPurchasingModule, IAndroidStoreSelection, IStoreConfiguration

    Fields

    k_PackageVersion

    Obsolete and inaccurate. Do not use.

    Declaration
    [Obsolete("Not accurate. Use Version instead.", false)]
    public const string k_PackageVersion = "3.0.1"
    Field Value
    Type Description
    string

    Properties

    Version

    The version of com.unity.purchasing installed and the app was built using.

    Declaration
    public string Version { get; }
    Property Value
    Type Description
    string

    appStore

    A property that retrieves the AppStore type.

    Declaration
    public AppStore appStore { get; }
    Property Value
    Type Description
    AppStore

    useFakeStoreAlways

    Whether or not to use the Fake store.

    Declaration
    public bool useFakeStoreAlways { get; set; }
    Property Value
    Type Description
    bool

    useFakeStoreUIMode

    The UI mode for the Fake store, if it's in use.

    Declaration
    public FakeStoreUIMode useFakeStoreUIMode { get; set; }
    Property Value
    Type Description
    FakeStoreUIMode

    Methods

    Configure()

    Configures the StandardPurchasingModule.

    Declaration
    public override void Configure()

    Instance()

    Creates an instance of StandardPurchasingModule or retrieves the existing one.

    Declaration
    public static StandardPurchasingModule Instance()
    Returns
    Type Description
    StandardPurchasingModule

    The existing instance or the one just created.

    Instance(AppStore)

    Creates an instance of StandardPurchasingModule or retrieves the existing one, specifying a type of App store.

    Declaration
    public static StandardPurchasingModule Instance(AppStore androidStore)
    Parameters
    Type Name Description
    AppStore androidStore

    The type of Android Store with which to create the instance.

    Returns
    Type Description
    StandardPurchasingModule

    The existing instance or the one just created.

    Implements

    IAndroidStoreSelection
    IStoreConfiguration
    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)