지원 / Support
home
디스코드 / Discord
home
📃

Terms & Condition Integration

Guideline to check whether the user has agreed to Terms and Conditions
Note
To run STOVE Client, SEED Public is provided, below explains how you can use SEED Public Library

1. SEED Public Library

환경
내용
비고
Live
https://static-new.onstove.com/sl-4.0.0/stove-launcher.js
Sandbox
https://static-new.gate8.com/sl-4.0.0/stove-launcher.js

2. SEED Public Library in head

Like below, enter Script Tag which contains SEED Public Library js file within the head tag
<head> <meta charset="UTF-8" /> <title>stove launcher</title> <script src="https://static-new.onstove.com/sl-4.0.0/stove-launcher.js" defer></script> </head>
JavaScript
복사

3. Check whether (LauncherService.checkAgreeTerms)

You can check whether the user has agreed to Terms and Condition by using LauncherService.checkAgreeTerms from SEED Public Library
LauncherService.checkAgreeTerms( { serviceId: 'STOVE_TTO', viewAreaId: 'SVC_AG', nation: getCookie('NNTO') }, (isAgreeTerms) => { if (isAgreeTerms) { console.log('Agreed to Terms and Conditions!'); } else { console.log('Not Agreed to Terms and Conditions!'); } }, (errorCode) => { failCallBack(errorCode); } );
JavaScript
복사

3.1 LauncherService.checkAgreeTerms 옵션 명세

Option
Value(type)
Requirement
Default Value
Description
serviceId
String
Y
-
ID
viewAreaId
String
Y
-
"SVC_AG" - 단일값
nation
String
Y
-
Login Country
CallBack
Function (Boolean)
Y
Reutrns whether agreed to Terms and Conditions, in Boolean format - true: Agree to Terms and Conditions - false: Not Agreed to Terms and Conditions

3.2 failCallBack (ErrorCodes)

ErrorCdoe
Description
ETC
603
When the return value is something not expected

4. Sample Code

Environmnet
Address
Note
Sandbox
https://static-new.gate8.com/sl-4.0.0/index.html
If updating SEED, delete browser cache and start again