docs.unity3d.com
    Show / Hide Table of Contents

    Testing

    Simulator

    Unity IAP features support for Microsoft's In App Purchase simulator, which allows you to test IAP purchase flows on devices before publishing your application.

    The simulator can be enabled when configuring Unity IAP before initialization, as follows:

    var builder = ConfigurationBuilder.Instance(StandardPurchasingModule.Instance());
    builder.Configure<IMicrosoftConfiguration>().useMockBillingSystem = true;
    

    Make sure you disable the mock billing system before publishing your application.

    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