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
- typescript
var settings: XsollaSettings = {
loginId: '<yourLoginId>',
projectId: '<yourProjectId>',
clientId: '<yourClientId>',
enableSandbox: IsSandbox
}
Xsolla.init(settings);
Your progress
Found a typo or other text error? Select the text and press Ctrl+Enter.