Set up SDK
- Open your Unity project.
- Click
Window > Xsolla > Edit Settings in the main menu. - Specify project parameters in the
Inspector panel:
- In the
Project ID field, specify the project ID that can be found in Publisher Account next to the name of your project. - 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 theLogin ID field empty. - If you use your own authorization system, select
Access Token in theAuthorization Type field and specify theAuthentication Server URL . - 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.
- In the
Note
If the Callback URL field is empty, 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.
app://xlogin.<APP_ID>
is used for redirection, where <APP_ID>
is the application ID from - 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. - Set other settings if necessary (e.g., display options for the payment UI in the
Pay Station UI section).
- In the
Your progress
Found a typo or other text error? Select the text and press Ctrl+Enter.