API 더 알아보기
1. 서명 화면을 팝업으로 열기
const signingUrl = '계약 문서 생성 API 로 받은 signingUrl';
const newWindow = window.open(signingUrl, '_blank');
window.addEventListener('message',(event) =>{
if(event.data.action === 'closeWindow'){
this.newWindow.close();
}
if(event.data.result === 'signed'){
/* 이 부분에서 완료 파일 다운로드 페이지를 호출하거나
완료 문서 + 참고 파일 문서를 생성하는 API 호출합니다. */
}
});
2. 다운로드를 위한 처리
Last updated