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. If you use your own authorization system, leave the Login ID field empty.
    3. If you use your own authorization system, select Access Token in the Authorization Type field and specify the Authentication Server URL.
    4. 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 > Callback URLs 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 > Callback URLs 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: April 28, 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!