docs.unity3d.com
    Show / Hide Table of Contents

    How to Test

    Running Fake Store

    To run fake store there are two ways:

    1. Press Play in the Unity Editor, this will always use the fake store
    2. Set StandardPurchasingModule.Instance().useFakeStoreAlways to true

    Advance Testing

    The Fake Store allows the developer to chose between three options for testing purposes. This testing feature can be set with StandardPurchasingModule.Instance().useFakeStoreUIMode.

    1. Default

    This option display no dialog.

    2. StandardUser

    This option will show a simple dialog is shown when Purchasing.

    3. DeveloperUser

    This option will show a dialog giving options for failure reason code selection when Initializing/Retrieving Products and when Purchasing.

    Back to top
    Terms of use
    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