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