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
|
<?php // Import Classes require_once dirname(__FILE__).'/lib/nicepay/web/NicePayWEB.php'; require_once dirname(__FILE__).'/lib/nicepay/core/Constants.php'; require_once dirname(__FILE__).'/lib/nicepay/web/NicePayHttpServletRequestWrapper.php';
/** 1. Request Wrapper Ŭ·¡½º¸¦ µî·ÏÇÑ´Ù. */ $httpRequestWrapper = new NicePayHttpServletRequestWrapper($_REQUEST); $_REQUEST = $httpRequestWrapper->getHttpRequestMap();
/** 2. ¼ÒÄÏ ¾î´ðÅÍ¿Í ¿¬µ¿ÇÏ´Â Web ÀÎÅÍÆäÀ̽º °´Ã¼¸¦ »ý¼ºÇÑ´Ù.*/ $nicepayWEB = new NicePayWEB();
/** 2-1. ·Î±× µð·ºÅ丮 ¼³Á¤ */ $nicepayWEB->setParam("NICEPAY_LOG_HOME","c:\log");
/** 2-2. ·Î±× ¸ðµå ¼³Á¤(0: DISABLE, 1: ENABLE) */ $nicepayWEB->setParam("APP_LOG","1");
/** 2-3. ¾ÏÈ£ÈÇ÷¡±× ¼³Á¤(N: Æò¹®, S:¾ÏÈ£È) */ $nicepayWEB->setParam("EncFlag","S");
/** 2-4. ¼ºñ½º¸ðµå ¼³Á¤(°áÁ¦ ¼ºñ½º : PY0 , Ãë¼Ò ¼ºñ½º : CL0) */ $nicepayWEB->setParam("SERVICE_MODE", "CL0");
/** 3. °áÁ¦Ãë¼Ò ¿äû */ $responseDTO = $nicepayWEB->doService($_REQUEST);
/** 4. Ãë¼Ò°á°ú */ $resultCode = $responseDTO->getParameter("ResultCode"); // °á°úÄÚµå (Á¤»ó :2001(Ãë¼Ò¼º°ø), 2211(ȯºÒ¼º°ø), ±× ¿Ü ¿¡·¯) $resultMsg = $responseDTO->getParameter("ResultMsg"); // °á°ú¸Þ½ÃÁö $cancelAmt = $responseDTO->getParameter("CancelAmt"); // Ãë¼Ò±Ý¾× $cancelDate = $responseDTO->getParameter("CancelDate"); // Ãë¼ÒÀÏ $cancelTime = $responseDTO->getParameter("CancelTime"); // Ãë¼Ò½Ã°£ $cancelNum = $responseDTO->getParameter("CancelNum"); // Ãë¼Ò¹øÈ£ $payMethod = $responseDTO->getParameter("PayMethod"); // Ãë¼Ò °áÁ¦¼ö´Ü $mid = $responseDTO->getParameter("MID"); // »óÁ¡ ID $tid = $responseDTO->getParameter("TID"); // TID ?>
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=euc-kr" /> <title>NICEPAY :: °áÁ¦Ãë¼Ò °á°ú</title> <link rel="stylesheet" href="css/basic.css" type="text/css" /> <link rel="stylesheet" href="css/style.css" type="text/css" /> </head> <body> <br> <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>Ãë¼Ò ¿äûÀÌ ¿Ï·áµÇ¾ú½À´Ï´Ù. </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" > <?php echo $tid?></td> </tr> <tr> <!-- Å×À̺í ÀϹÝÀÇ ³ôÀÌ´Â 30px // Ȧ¼öÇ༿ÀÇ °æ¿ì class="thead01" »ç¿ë --> <td width="100" height="30" id="borderBottom" class="thead02">Ãë¼Ò ÀÏÀÚ</td> <td id="borderBottom" > <?php echo $cancelDate?></td> </tr> <tr> <!-- Å×À̺í ÀϹÝÀÇ ³ôÀÌ´Â 30px // Ȧ¼öÇ༿ÀÇ °æ¿ì class="thead01" »ç¿ë --> <td width="100" height="30" id="borderBottom" class="thead02">Ãë¼Ò ½Ã°¢</td> <td id="borderBottom" > <?php echo $cancelTime?></td> </tr> <tr> <!-- Å×À̺í ÀϹÝÀÇ ³ôÀÌ´Â 30px // ¦¼öÇ༿ÀÇ °æ¿ì class="thead01" »ç¿ë --> <td width="100" height="30" id="borderBottom" class="thead01">°á°ú ³»¿ë</td> <td id="borderBottom" > [<?php echo $resultCode?>] <?php echo $resultMsg?></td> </tr> <tr> <td width="100" height="30" id="borderBottom" class="thead02">Ãë¼Ò ±Ý¾×</td> <td id="borderBottom" > <?php echo $cancelAmt?></td> </tr> <tr> <td width="100" height="30" id="borderBottom" class="thead02">Ãë¼Ò ½ÂÀιøÈ£</td> <td id="borderBottom" > <?php echo $cancelNum?></td> </tr> </table></td> <tr> <td height="15"></td> <!--ÄÁÅÙÃ÷¿Í ÄÁÅÙÃ÷ »çÀÌ °£°Ý 15px--> <td > </td> <td> </td> </tr> <tr> <td></td> <td class="comment">Ãë¼Ò°¡ ¼º°øÇÑ °æ¿ì¿¡´Â ´Ù½Ã ½ÂÀλóÅ·Πº¹±¸ ÇÒ ¼ö ¾ø½À´Ï´Ù.. </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> </body> </html>
|