SDKs for Unity / Set up SDK
 Back to Docs

SDKs for Unity

  • Integration guide

  • Demo project

  • Authentication

  • Catalog

  • Subscriptions

  • Promotions

  • Item purchase

  • Player inventory

  • User account and attributes

  • Application build guides

  • Troubleshooting


  • Set up SDK

    1. Open your Unity project.
    2. Click Window > Xsolla > Edit Settings in the main menu.
    3. Specify project parameters in the Inspector panel:

      1. In the Project ID field, specify the project ID that can be found in Publisher Account next to the name of your project.
      2. In the Login ID field, specify the ID of the Login project. To get it, open Publisher Account, go to the Login > Dashboard section, and click Copy ID next to the name of the Login project.
      3. In the Callback URL field, specify the URL or path in the application to which users are redirected after they have successfully authenticated, confirmed their email, or reset their password. The value must match the one specified in Publisher Account in the Login > your Login project > Security > OAuth 2.0 section.

    Note
    If the Callback URL field is empty, app://xlogin.<APP_ID> is used for redirection, where <APP_ID> is the application ID from Edit > Project Settings > Player > Android (iOS) > Other Settings > Bundle Identifier. The same value must be added in Publisher Account in the Login > your Login project > Security > OAuth 2.0 section.

      1. In the OAuth Client ID field, specify client ID for OAuth 2.0 that can be found in Publisher Account in the Login > your Login project > Security > OAuth 2.0 section.
      2. Set other settings if necessary (e.g., display options for the payment UI in the Pay Station UI section).

    Your progress
    Thank you for your feedback!
    Last updated: August 8, 2022

    Found a typo or other text error? Select the text and press Ctrl+Enter.

    Report a problem
    We always review our content. Your feedback helps us improve it.
    Provide an email so we can follow up
    Thank you for your feedback!