/* * 현금영수증 발행시 과금되는 포인트 단가를 확인합니다. * - https://docs.popbill.com/cashbill/dotnetcore/api#GetUnitCost */ public IActionResult GetUnitCost() { try { var result = _cashbillService.GetUnitCost(corpNum); return(View("Result", result)); } catch (PopbillException pe) { return(View("Exception", pe)); } }
// 발행단가 확인 private void btnUnitCost_Click(object sender, EventArgs e) { try { float unitCost = cashbillService.GetUnitCost(txtCorpNum.Text); MessageBox.Show(unitCost.ToString()); } catch (PopbillException ex) { MessageBox.Show(ex.code.ToString() + " | " + ex.Message); } }