1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
|
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=euc-kr" /> <link rel="stylesheet" type="text/css" href="assets/demo/css01.css" /> <? // Ŭ¶óÀÌ¾ðÆ® ip °¡Á®¿À±â $ip = $_SERVER['REMOTE_ADDR']; // Àü¹®»ý¼ºÀϽà $ediDate = date("YmdHis"); // »óÁ¡¼¸íŰ (²À ÇØ´ç »óÁ¡Å°·Î ¹Ù²ãÁÖ¼¼¿ä) $merchantKey = "33F49GnCMS1mFYlGXisbUDzVf2ATWCl9k3R++d5hDd3Frmuos/XLx8XhXpe+LDYAbpGKZYSwtlyyLOtS/8aD7A=="; // hash ó¸® $MerchantID = "nictest00m"; $price = "1004"; $str_src = $ediDate.$MerchantID.$price.$merchantKey; $hash_String = base64_encode(md5($str_src)); // °¡»ó°èÁ ÀÔ±Ý ¿¹Á¤ÀÏ ¼³Á¤ $tomorrow = mktime(0, 0, 0, date("m") , date("d")+1, date("Y")); $vDate = date("Ymd",$tomorrow);
?> <title>NICEPAY :: °áÁ¦ ¿äû</title> <link rel="stylesheet" href="css/basic.css" type="text/css" /> <link rel="stylesheet" href="css/style.css" type="text/css" />
<script src="https://web.nicepay.co.kr/flex/js/nicepay_tr.js" language="javascript"></script>
<script language="javascript"> NicePayUpdate(); //Active-x Control ÃʱâÈ
/** nicepay ¸¦ ÅëÇØ °áÁ¦¸¦ ½ÃÀÛÇÕ´Ï´Ù. */ function nicepay() {
var payForm = document.payForm; // Çʼö »çÇ×µéÀ» üũÇÏ´Â ·ÎÁ÷À» »ðÀÔÇØÁÖ¼¼¿ä. goPay(payForm); }
/** °áÁ¦ °á°ú¸¦ submit ÇÕ´Ï´Ù. ¾Ë¸Â°Ô formÀ» ¼öÁ¤ÇϽʽÿä. */ function nicepaySubmit(){ document.payForm.submit(); }
/** °áÁ¦¸¦ Ãë¼Ò ÇÒ¶§ È£ÃâµË´Ï´Ù. */ function nicepayClose() { alert("°áÁ¦°¡ Ãë¼Ò µÇ¾ú½À´Ï´Ù"); }
function chkTransType(value) { document.payForm.TransType.value = value; }
function chkPayType() { document.payForm.PayMethod.value = checkedButtonValue('selectType'); } </script> </head> <body> <br> <br> <form name="payForm" method="post" action="nicePayResult.php"> <table width="632" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td > <table width="632" border="0" cellspacing="0" cellpadding="0" class="title"> <tr> <td width="35"> </td> <td>°áÁ¦ ¿äû</td> <td> </td> </tr> </table> </td> </tr> <tr> <td align="left" valign="top" background="images/bodyMiddle.gif"> <table width="632" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="35" height="10"> </td> <!--»ó´Ü¿©¹é ³ôÀÌ 10px --> <td width="562"> </td> <td width="35"> </td> </tr> <tr> <td height="30"> </td> <td>°áÁ¦ ¿äûÆäÀÌÁö »ùÇÃÀÔ´Ï´Ù. <br> </td> <td> </td> </tr> <tr> <td height="15"> </td> <!--ÄÁÅÙÃ÷¿Í ÄÁÅÙÃ÷ »çÀÌ °£°Ý 15px--> <td> </td> <td> </td> </tr> <tr> <td height="30"> </td> <td class="bold"><img src="images/bullet.gif" /> Á¤º¸¸¦ ±âÀÔÇϽŠÈÄ È®ÀιöưÀ» ´·¯ÁֽʽÿÀ. <td> </td> </tr> <tr> <td > </td> <td ><table width="562" border="0" cellspacing="0" cellpadding="0" class="talbeBorder" > <tr> <!-- Å×À̺í ÀϹÝÀÇ ³ôÀÌ´Â 30px // Ȧ¼öÇ༿ÀÇ °æ¿ì class="thead01" »ç¿ë --> <td width="100" height="30" id="borderBottom" class="thead01">°áÁ¦ ¼ö´Ü</td> <td id="borderBottom" > <input type="checkbox" name="selectType" value="CARD" onClick="javascript:chkPayType();">[½Å¿ëÄ«µå] <input type="checkbox" name="selectType" value="BANK" onClick="javascript:chkPayType();">[°èÁÂÀÌü] <input type="checkbox" name="selectType" value="VBANK" onClick="javascript:chkPayType();">[°¡»ó°èÁÂ] <input type="checkbox" name="selectType" value="CELLPHONE" onClick="javascript:chkPayType();">[ÈÞ´ëÆù°áÁ¦] </td> </tr> <tr> <!-- Å×À̺í ÀϹÝÀÇ ³ôÀÌ´Â 30px // ¦¼öÇ༿ÀÇ °æ¿ì class="thead02" »ç¿ë --> <td width="100" height="30" id="borderBottom" class="thead02" >°áÁ¦Å¸ÀÔ</td> <td id="borderBottom" > <input type="radio" name="TransTypeRadio" value="0" onClick="javascript:chkTransType('0')" checked>ÀϹÝ</input> <input type="radio" name="TransTypeRadio" value="1" onClick="javascript:chkTransType('1')" >¿¡½ºÅ©·Î</input> </td> </tr> <tr> <td width="100" height="30" id="borderBottom" class="thead01">* »óǰ¸í</td> <td id="borderBottom" ><input name="GoodsName" type="text" value="°õÀÎÇü"/></td> </tr> <tr> <td width="100" height="30" id="borderBottom" class="thead02">»óǰÁÖ¹®¹øÈ£</td> <td id="borderBottom" ><input name="Moid" type="text" value="mnoid1234567890"/></td> </tr> <tr> <td width="100" height="30" id="borderBottom" class="thead01">* ±¸¸ÅÀÚ¸í</td> <td id="borderBottom" ><input name="BuyerName" type="text" value="È«±æµ¿"/></td> </tr> <tr> <td width="100" height="30" id="borderBottom" class="thead02">* ±¸¸ÅÀÚ À̸ÞÀÏ</td> <td id="borderBottom" ><input name="BuyerEmail" type="text" value="test@abc.com"/></td> </tr> <tr> <td width="100" height="30" id="borderBottom" class="thead01">* ±¸¸ÅÀÚ ÀüȹøÈ£</td> <td id="borderBottom" ><input name="BuyerTel" type="text" value="12345678"/></td> </tr> <tr> <td width="100" height="30" id="borderBottom" class="thead02">* »óÁ¡¾ÆÀ̵ð</td> <td id="borderBottom" ><input name="MID" type="text" value="<?php echo $MerchantID?>"/></td> </tr> <tr> <td width="100" height="30" id="borderBottom" class="thead01">ÈÞ´ëÆù°áÁ¦<br>»óǰ±¸ºÐ</td> <td id="borderBottom" > <table width="100%" height="50px" cellpadding="0px" cellspacing="0px"> <tr> <td width="185px" id="borderBottom"> <select name="GoodsCl" style="width:160px;"> <option value="1" selected>½Ç¹°</option> <option value="0">ÄÁÅÙÃ÷</option> </select> </td> <td width="273px" class="red" id="borderBottom" ><span class="redBold">1</span> : ½Ç¹° <br> <span class="redBold">0</span> : ÄÁÅÙÃ÷</td> </tr> </table> </td> </tr> </table></td> <td height="15"> </td> </tr> <tr> <td height="60"></td> <td class="btnCenter"><input type="button" value="¿äûÇϱâ" onClick="javascript:nicepay();"></td> <!-- ÇÏ´Ü¿¡ ¹öưÀÌ Àִ°æ¿ì ¹öưÆ÷ÇÔ ¿©¹é ³ôÀÌ 30px --> <td> </td> </tr> <tr> <td height="15"></td> <!--ÄÁÅÙÃ÷¿Í ÄÁÅÙÃ÷ »çÀÌ °£°Ý 15px--> <td > </td> <td> </td> </tr> <tr> <td></td> <td class="comment">* Ç¥ Ç׸ñÀº ¹Ýµå½Ã ±âÀÔÇØÁֽñ⠹ٶø´Ï´Ù.<br><br/> <span class="bold">Å×½ºÆ® ¾ÆÀ̵ð·Î °áÁ¦µÈ °Ç¿¡´ëÇØ¼´Â ´çÀÏ ¿ÀÈÄ 11:30ºÐ¿¡ Àϰý Ãë¼ÒµË´Ï´Ù.</span><br/> ½ÇÁ¦¾ÆÀ̵ð Àû¿ë½Ã Å×½ºÆ®¾ÆÀ̵𰡠Àû¿ëµÇÁö ¾Êµµ·Ï °¢º°ÇÑ ÁÖÀǸ¦ ºÎʵ右´Ï´Ù. </td> <td> </td> </tr> <tr> <td height="10"></td> <!--ÇÏ´Ü¿©¹é ³ôÀÌ 10px --> <td > </td> <td> </td> </tr> </table></td> </tr> <tr> <td><img src="images/bodyBottom.gif" /></td> </tr> </table>
<!-- Mall Parameters --> <input type="hidden" name="PayMethod" value=""> <!-- »óǰ °¹¼ö --> <input type="hidden" name="GoodsCnt" value="1"> <!-- ÁÖ¼Ò --> <input type="hidden" name="BuyerAddr" value="¼¿ï½Ã °³²±¸ ¿ª»ïµ¿ 9-11">
<input type="hidden" name="UserIP" value="<?php echo $ip?>">
<!-- »óǰ °¡°Ý(»ó´ÜÀÇ price¿¡¼ °¡°ÝÀ» ÁöÁ¤ÇϽʽÿä) --> <input type="hidden" name="Amt" value="<?php echo $price?>">
<!-- °áÁ¦ ŸÀÔ 0:ÀϹÝ, 1:¿¡½ºÅ©·Î --> <input type="hidden" name="TransType" value="0">
<!-- °áÁ¦ ¿É¼Ç --> <input type="hidden" name="OptionList" value="">
<!-- °¡»ó°èÁ ÀԱݿ¹Á¤ ¸¸·áÀÏ --> <input type="hidden" name="VbankExpDate" value="<?php echo $vDate?>">
<!-- ±¸¸ÅÀÚ °í°´ ID --> <input type="hidden" name="MallUserID" value=""> <!-- ¾ÏÈ£È Ç׸ñ --> <input name="EncodeParameters" type="hidden" value=""/>
<!-- º¯°æ ºÒ°¡ --> <input type="hidden" name="EdiDate" value="<?php echo $ediDate?>"> <input type="hidden" name="EncryptData" value="<?php echo $hash_String?>" > <input type="hidden" name="TrKey" value="">
</form> </body> </html>
|