docs.unity3d.com
    目次を表示する/隠す

    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.

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)