コード例 #1
0
        protected void Application_Start(object sender, EventArgs e)
        {
            // 현금영수증 매입/매출 조회 서비스 객체 초기화
            htCashbillService = new HTCashbillService(LinkID, SecretKey);

            // 연동환경 설정값, 개발용(true), 상업용(false)
            htCashbillService.IsTest = true;

            // 인증토큰 IP 제한기능 사용여부, 권장(true)
            htCashbillService.IPRestrictOnOff = true;

            // 팝빌 API 서비스 고정 IP 사용여부, true-사용, false-미사용, 기본값(false)
            htCashbillService.UseStaticIP = false;

            // 로컬서버 시간 사용 여부 true-사용, false-미사용, 기본값(false)
            htCashbillService.UseLocalTimeYN = true;
        }
コード例 #2
0
    public HTCashbillInstance()
    {
        //홈택스연동(현금영수증) 서비스 객체 초기화
        htCashbillService = new HTCashbillService(linkID, secretKey);

        //연동환경 설정값, 개발용(true), 상업용(false)
        htCashbillService.IsTest = true;

        //인증토큰의 IP제한기능 사용여부, 권장(true)
        htCashbillService.IPRestrictOnOff = true;

        // 팝빌 API 서비스 고정 IP 사용여부, true-사용, false-미사용, 기본값(false)
        htCashbillService.UseStaticIP = false;

        // 로컬 시스템시간 사용 여부, true(사용) - 기본값, fasle(미사용)
        htCashbillService.UseLocalTimeYN = true;
    }
コード例 #3
0
 public HTCashbillController(HTCashbillInstance HTCashbill)
 {
     // 홈택스연동(현금영수증) 서비스 객체 생성
     _htCashbillService = HTCashbill.htCashbillService;
 }