/* * 파트너의 잔여포인트를 확인합니다. * - 과금방식이 연동과금인 경우 연동회원 잔여포인트 확인(GetBalance API) 함수를 이용하시기 바랍니다. * - https://docs.popbill.com/easyfinbank/dotnetcore/api#GetPartnerBalance */ public IActionResult GetPartnerBalance() { try { var result = _easyFinBankService.GetPartnerBalance(corpNum); return(View("Result", result)); } catch (PopbillException pe) { return(View("Exception", pe)); } }
/* * 파트너 잔여포인트를 확인합니다. * - 연동 과금 방식의 경우 연동회원 잔여포인트 조회 (GetBalance API) 기능을 사용하시기 바랍니다. */ private void btnGetPartnerBalance_Click(object sender, EventArgs e) { try { double remainPoint = easyFinBankService.GetPartnerBalance(txtCorpNum.Text); MessageBox.Show(remainPoint.ToString()); } catch (PopbillException ex) { MessageBox.Show(ex.code.ToString() + " | " + ex.Message); } }