docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method BeginPurchase

    BeginPurchase(string, string)

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

    Declaration
    void BeginPurchase(string productId, string customPayload = "")
    Parameters
    Type Name Description
    string productId

    The platform-specific product ID to send to the purchasing platform.

    string customPayload

    An optional arbitrary string to send to the purchasing platform, with the expectation of getting the same string back eventually (if the purchasing platform supports that).

    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)