Exemplo n.º 1
0
        /*
         * 홈택스연동 인증을 위해 팝빌에 현금영수증 자료조회 부서사용자 계정을 등록합니다.
         * - https://docs.popbill.com/htcashbill/dotnetcore/api#RegistDeptUser
         */
        public IActionResult RegistDeptUser()
        {
            // 홈택스에서 생성한 현금영수증 부서사용자 아이디
            string deptUserID = "userid_test";

            // 홈택스에서 생성한 현금영수증 부서사용자 비밀번호
            string deptUserPWD = "passwd_test";

            try
            {
                var response = _htCashbillService.RegistDeptUser(corpNum, deptUserID, deptUserPWD);
                return(View("Response", response));
            }
            catch (PopbillException pe)
            {
                return(View("Exception", pe));
            }
        }