We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47d8a69 commit f9c82f2Copy full SHA for f9c82f2
ticket/templates/ticket-detail.html
@@ -21,9 +21,17 @@
21
>
22
const IMP = window.IMP;
23
const data = document.currentScript.dataset;
24
+
25
IMP.init("imp80859147");
26
27
function requestPay(payment_key, name, amount) {
28
+ const tel_no = document.getElementById("purchase_tel_no").value;
29
30
+ if (tel_no === undefined || tel_no === "") {
31
+ alert("전화번호를 입력하세요");
32
+ return
33
+ }
34
35
IMP.request_pay(
36
{
37
pg: "html5_inicis.INIpayTest",
@@ -53,8 +61,12 @@
53
61
<title>티켓 상세</title>
54
62
</head>
55
63
<body>
56
-<h1>{{ ticket_type.name }}</h1>
57
-<p>{{ ticket_type.desc }}</p>
64
+ <h1>{{ ticket_type.name }}</h1>
65
+ <p>상품명: {{ ticket_type.desc }}</p>
66
67
+ <p>
68
+ 전화번호: <input id="purchase_tel_no" type="tel"/>
69
+ </p>
58
70
59
71
<button onclick="requestPay()">
60
72
구매하기
0 commit comments