docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TransactionManager

    This class contains methods to process virtual transactions and in-app purchases.

    Inheritance
    object
    TransactionManager
    Namespace: UnityEngine.GameFoundation
    Assembly: solution.dll
    Syntax
    public static class TransactionManager

    Properties

    Name Description
    isInitialized

    Returns true after TransactionManager has been successfully initialized with a data layer.

    pendingIapTransaction
    purchasingAdapter

    An instance of the optional in-app purchasing adapter.

    purchasingAdapterIsInitialized

    Returns true if the optional purchasing adapter has finished initializing.

    Methods

    Name Description
    BeginTransaction(BaseTransaction, List<string>)

    Process a transaction.

    GetLocalizedIAPProductInfo(string)

    This uses the purchasing adapter to get localized product info from the platform store.

    InitializePurchasingAdapter(IPurchasingAdapter, Action, Action<Exception>)

    Tells TransactionManager to start using the specified in-app purchasing adapter to process all IAP transactions.

    Events

    Name Description
    purchasingAdapterInitializeFailed

    Fired after the purchasing adapter reports failing to initialize.

    purchasingAdapterInitializeSucceeded

    Fired after the purchasing adapter reports successfully being initialized.

    transactionFailed

    Fired after a transaction fails.

    transactionInitiated

    Fired as soon as a valid transaction is initiated.

    transactionProgressed

    Fired after every time the progress number is increased on a transaction's Deferred<TResult>.

    transactionSucceeded

    Fired after a transaction has succeeded at all levels.

    In This Article
    Back to top
    Copyright © 2024 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)