docs.unity3d.com
    Show / Hide Table of Contents

    Interface INativeStore

    An interface to native underlying store systems. Provides a base for opaquely typed communication across a language-bridge upon which additional functionality can be composed. Is used by most public IStore implementations which themselves are owned by the purchasing core.

    Namespace: UnityEngine.Purchasing
    Syntax
    public interface INativeStore

    Methods

    FinishTransaction(String, String)

    Call the Store to consume a product.

    Declaration
    void FinishTransaction(string productJSON, string transactionID)
    Parameters
    Type Name Description
    String productJSON

    Product to consume in JSON format.

    String transactionID

    The transaction id of the receipt to close.

    Purchase(String, String)

    Call the Store to purchase a product. The IStoreCallback will be call when the purchase is successful.

    Declaration
    void Purchase(string productJSON, string developerPayload)
    Parameters
    Type Name Description
    String productJSON

    The product to buy in JSON format.

    String developerPayload

    A string used by some stores to fight fraudulent transactions.

    RetrieveProducts(String)

    Call the Store to retrieve the store products. The IStoreCallback will be call with the retrieved products.

    Declaration
    void RetrieveProducts(string json)
    Parameters
    Type Name Description
    String json

    The catalog of products to retrieve the store information from in JSON format.

    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