aiqtech commited on
Commit
b7c24d3
·
verified ·
1 Parent(s): 44857bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -8,9 +8,9 @@ def card_authorization(onfftid, tot_amt, com_tax_amt, com_free_amt, com_vat_amt,
8
  data = {
9
  "onfftid": onfftid,
10
  "tot_amt": tot_amt,
11
- "com_tax_amt": com_tax_amt,
12
- "com_free_amt": com_free_amt,
13
- "com_vat_amt": com_vat_amt,
14
  "card_no": card_no,
15
  "install_period": install_period,
16
  "user_nm": user_nm,
@@ -41,9 +41,9 @@ with gr.Blocks() as app:
41
  with gr.Column(scale=1):
42
  onfftid = gr.Label(label="온오프코리아 TID", value="OFPT000000011017")
43
  tot_amt = gr.Number(label="결제금액 (금액을 입력하세요)")
44
- com_tax_amt = gr.Number(label="과세승인금액 (필요시 입력)", optional=True)
45
- com_free_amt = gr.Number(label="비과세승인금액 (필요시 입력)", optional=True)
46
- com_vat_amt = gr.Number(label="부가세 (필요시 입력)", optional=True)
47
  card_no = gr.Textbox(label="카드번호", placeholder="카드번호를 입력하세요")
48
  install_period = gr.Dropdown([str(i).zfill(2) for i in range(13)], label="할부기간 선택")
49
  user_nm = gr.Textbox(label="결제자명", placeholder="결제자의 이름을 입력하세요")
 
8
  data = {
9
  "onfftid": onfftid,
10
  "tot_amt": tot_amt,
11
+ "com_tax_amt": com_tax_amt if com_tax_amt is not None else '',
12
+ "com_free_amt": com_free_amt if com_free_amt is not None else '',
13
+ "com_vat_amt": com_vat_amt if com_vat_amt is not None else '',
14
  "card_no": card_no,
15
  "install_period": install_period,
16
  "user_nm": user_nm,
 
41
  with gr.Column(scale=1):
42
  onfftid = gr.Label(label="온오프코리아 TID", value="OFPT000000011017")
43
  tot_amt = gr.Number(label="결제금액 (금액을 입력하세요)")
44
+ com_tax_amt = gr.Number(label="과세승인금액 (필요시 입력)")
45
+ com_free_amt = gr.Number(label="비과세승인금액 (필요시 입력)")
46
+ com_vat_amt = gr.Number(label="부가세 (필요시 입력)")
47
  card_no = gr.Textbox(label="카드번호", placeholder="카드번호를 입력하세요")
48
  install_period = gr.Dropdown([str(i).zfill(2) for i in range(13)], label="할부기간 선택")
49
  user_nm = gr.Textbox(label="결제자명", placeholder="결제자의 이름을 입력하세요")