Exemplo n.º 1
0
 public frmExample()
 {
     InitializeComponent();
     //초기화
     cashbillService = new CashbillService(LinkID, SecretKey);
     //테스트를 완료한후 아래 변수를 false로 변경하거나, 아래줄을 삭제하여 실제 서비스 연결.
     cashbillService.IsTest = true;
 }
Exemplo n.º 2
0
    public CashbillInstance()
    {
        // 현금영수증 서비스 객체 초기화
        cashbillService = new CashbillService(linkID, secretKey);

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

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

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

        // 로컬 시스템시간 사용 여부, true(사용), fasle(미사용) - 기본값
        cashbillService.UseLocalTimeYN = false;
    }
 public CashbillController(CashbillInstance CBinstance)
 {
     //현금영수증 서비스 객체 생성
     _cashbillService = CBinstance.cashbillService;
 }