docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method InitiatePurchase

    InitiatePurchase(Product, string)

    Initiate a purchase from the controlled store.

    Declaration
    void InitiatePurchase(Product product, string payload)
    Parameters
    Type Name Description
    Product product

    The product to be purchased.

    string payload

    The developer payload provided for certain stores that define such a concept (ex: Google Play).

    InitiatePurchase(string, string)

    Initiate a purchase from the controlled store.

    Declaration
    void InitiatePurchase(string productId, string payload)
    Parameters
    Type Name Description
    string productId

    The id of the product to be purchased.

    string payload

    The developer payload provided for certain stores that define such a concept (ex: Google Play).

    InitiatePurchase(Product)

    Initiate a purchase from the controlled store.

    Declaration
    void InitiatePurchase(Product product)
    Parameters
    Type Name Description
    Product product

    The product to be purchased.

    InitiatePurchase(string)

    Initiate a purchase from the controlled store

    Declaration
    void InitiatePurchase(string productId)
    Parameters
    Type Name Description
    string productId

    The id of the product to be purchased.

    In This Article
    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