Esempio n. 1
0
 /*
  * 연동회원의 잔여포인트를 확인합니다.
  * - 과금방식이 파트너과금인 경우 파트너 잔여포인트 확인(GetPartnerBalance API) 함수를 통해 확인하시기 바랍니다.
  * - https://docs.popbill.com/fax/dotnetcore/api#GetBalance
  */
 public IActionResult GetBalance()
 {
     try
     {
         var result = _faxService.GetBalance(corpNum);
         return(View("Result", result));
     }
     catch (PopbillException pe)
     {
         return(View("Exception", pe));
     }
 }
Esempio n. 2
0
        // 잔여포인트 확인
        private void btnGetBalance_Click(object sender, EventArgs e)
        {
            try
            {
                double remainPoint = faxService.GetBalance(txtCorpNum.Text);

                MessageBox.Show(remainPoint.ToString());
            }
            catch (PopbillException ex)
            {
                MessageBox.Show(ex.code.ToString() + " | " + ex.Message);
            }
        }