Actions
How to skip due diligent and eKYC when onboarding¶
To enable onboarding testing without performing real KYC,
by inserting mock onboarding data into the database in advance.
Content¶
Please follow this order strictly:
- Create an account through Web Trade
- Log in and retrieve the user_id from JWT
- Update all required variables in the SQL script
- Run the SQL script on the database : onboarding_service
- Proceed with onboarding via Web or Mobile
Require Variables¶
| filed | mandatory | Description | example |
|---|---|---|---|
| _user_id | Yes | user_id obtained from JWT | ‘155’ |
| _id_number | Yes | mock Thai citizen ID Generate kzyNet - สคริป สุ่มเลข 13 หลัก ออนไลน์ | ‘1920508255554’ |
| _email | condition | account created via email | 'example@gmail.com' |
| email or _mobile | condition | account created via mobile | '+660476182337' |
| fullname_th | Yes | full name in thai | 'นาย ทดสอบ ทดสอบ' |
| fullname_en | Yes | full name in english | 'Mr. Test Onboarding' |
| laser_code | Yes | laser code | 'ME5-574ex0446-46' |
| serial_number | No | serial number of id card | '1019-05-09546327' |
| idcard_address | Yes | Idcard Address | '123 ต.สนามจันทร์ อ.เมืองนครปฐม จ.นครปฐม' |
| date_birth_en | Yes | date birth en | '12 Nov. 2000' |
| date_birth_th | Yes | date birth th | '12 พ.ย. 2543' |
| date_issue_en | No | date issue en | '18 Apr. 2018' |
| date_issue_th | No | date issue th | '18 เม.ย. 2561' |
| date_expire_en | Yes | date expire en | '26 Nov. 2033' |
| date_expire_th | Yesy | date expire th | '26 พ.ย. 2575' |
DO $$
DECLARE
_user_id text := value;
_id_number text := value;
_email text := value;
_mobile text := value;
_fullname_th text := value
_fullname_en text := value
_laser_code text := value
_serial_number text := value
_idcard_address text := value
_date_birth_en text := value
_date_birth_th text := value
_date_issue_en text:= value
_date_issue_th text:= value
_date_expire_en text:= value
_date_expire_th text:= value
_pre_member_id uuid := gen_random_uuid();
_verification_id uuid := gen_random_uuid();
_appman_id uuid := gen_random_uuid();
_idcard_id uuid := gen_random_uuid();
BEGIN
INSERT INTO pre_members (
id, email, mobile, member_id, user_id, created_at, updated_at
) VALUES (
_pre_member_id, _email, _mobile, _user_id, NULL, NOW(), NOW()
);
INSERT INTO appman (
id, member_id, verification_id, is_front_id_card, is_back_id_card,
is_liveness, is_recognition, status,verified_status, type,dopa_status,face_similarity, created_at, updated_at
) VALUES (
_appman_id, _user_id, _verification_id, TRUE, TRUE, TRUE, TRUE,
'completed',TRUE,1,TRUE,99, NOW(), NOW()
);
INSERT INTO appman_idcard (
id, member_id, verification_id, id_number, address_th,
full_name_th, full_name_en, serial_number, created_at, updated_at, laser_code,
date_birth_en,date_birth_th,date_issue_en,date_issue_th,date_expire_en,date_expire_th
) VALUES (
_idcard_id, _user_id, _verification_id, _id_number,
_idcard_address,
_fullname_th,
_fullname_en,
_serial_number,
NOW(), NOW(), _laser_code,
_date_birth_en,
_date_birth_th,
_date_issue_en,
_date_issue_th,
_date_expire_en,
_date_expire_th
);
END $$;
2.Proceed with onboarding until

3.run sql script
update customer_details set type = 1 where member_id ='115';
onboarding process is done
- approve with admin
Updated by karnake ruengchaicharnkij about 2 months ago · 1 revisions