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

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