Initialize SDK

Add the following lines to your project’s source code in Cocos Creator, where:

  • <yourLoginId> — Login ID. To get it, open Publisher Account, go to the Login > Dashboard section, and click Copy ID next to the name of the Login project.
  • <yourProjectId> — project ID. It can be found in your Publisher Account next to the name of your project.
  • <yourClientId> — Client ID. It can be found in Publisher Account in the Login > your Login project > Security > OAuth 2.0 section.

Copy
Full screen
Small screen

var settings: XsollaSettings = {
            loginId: '<yourLoginId>',
            projectId: '<yourProjectId>',
            clientId: '<yourClientId>',
            enableSandbox: IsSandbox
        }

        Xsolla.init(settings);

Your progress
Thank you for your feedback!
Last updated: April 26, 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!