docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IPurchasingAdapter

    Implement this interface when you want to adapt a real money IAP library with Game Foundation's Transaction system. When the Game Foundation Transaction Manager is initialized with one of these adapters, the Transaction Manager will use this adapter to process all IAPTransactionDefinitions.

    Namespace: UnityEngine.GameFoundation.PurchasingAdapters
    Assembly: solution.dll
    Syntax
    public interface IPurchasingAdapter

    Properties

    Name Description
    isAppleIOS

    Are we currently running on the Apple iOS platform?

    isFakeStore

    Are we currently running on a fake platform just for testing?

    isGooglePlay

    Are we currently running on the Google Play platform?

    Methods

    Name Description
    BeginPurchase(string, string)

    Called when the player initiates a real money in-app purchase.

    CompletePendingPurchase(string)

    Called after a purchase has been verified and fulfilled by some other authority, such as an online backend.

    GetCurrentPurchaseData()

    Return a struct that contains just the data about a successful purchase which the TransactionManager can use to fulfill and/or finalize a purchase.

    GetLocalizedProductInfo(string)

    Use the purchasing platform to get localized product name, price, and other metadata.

    Initialize(Action, Action<Exception>)

    Called to set up anything the platform SDK needs in order to process real money purchase requests.

    RestorePurchases()

    Called when the player wants to restore purchases (for platforms that don't restore them automatically).

    Uninitialize()

    The TransactionManager will call this method when it is uninitialized, when Game Foundation is uninitialized.

    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)