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
|
<?php /** * * @author kblee * */ class CancelBodyMessageValidator{ /** * */ public function CancelBodyMessageValidator(){ } /** * * @param $mdto */ public function validate($mdto) { // Ãë¼Ò±Ý¾× if($mdto->getParameter(CANCEL_AMT) == null || $mdto->getParameter(CANCEL_AMT) == ""){ if(LogMode::isAppLogable()){ $logJournal = NicePayLogJournal::getInstance(); $logJournal->errorAppLog("Ãë¼Ò±Ý¾× ¹Ì¼³Á¤ ¿À·ùÀÔ´Ï´Ù."); } throw new ServiceException("V801","Ãë¼Ò±Ý¾× ¹Ì¼³Á¤ ¿À·ùÀÔ´Ï´Ù."); } // Ãë¼Ò»çÀ¯ if($mdto->getParameter(CANCEL_MSG) == null || $mdto->getParameter(CANCEL_MSG) == ""){ if(LogMode::isAppLogable()){ $logJournal = NicePayLogJournal::getInstance(); $logJournal->errorAppLog("Ãë¼Ò»çÀ¯ ¹Ì¼³Á¤ ¿À·ùÀÔ´Ï´Ù."); } throw new ServiceException("V802","Ãë¼Ò»çÀ¯ ¹Ì¼³Á¤ ¿À·ùÀÔ´Ï´Ù."); } // »óÁ¡ID if($mdto->getParameter(MID) == null || $mdto->getParameter(MID) == ""){ if(LogMode::isAppLogable()){ $logJournal = NicePayLogJournal::getInstance(); $logJournal->errorAppLog("»óÁ¡ID ¹Ì¼³Á¤ ¿À·ùÀÔ´Ï´Ù."); } throw new ServiceException("V201","»óÁ¡ID ¹Ì¼³Á¤ ¿À·ùÀÔ´Ï´Ù."); }
if($mdto->getParameter(PAY_METHOD) == null || $mdto->getParameter(PAY_METHOD) == ""){ if(LogMode::isAppLogable()){ $logJournal = NicePayLogJournal::getInstance(); $logJournal->errorAppLog("ÁöºÒ¼ö´ÜÀÌ ¼³Á¤µÇÁö ¾Ê¾Ò½À´Ï´Ù. Ãë¼Ò ¼ºñ½ºÀÏ °æ¿ì BANK, CARD, CELLPHONE ÀÌ Áß Çϳª¸¦ ¼³Á¤ÇØ¾ß ÇÕ´Ï´Ù."); } throw new ServiceException("V103","ÁöºÒ¼ö´ÜÀ» ¼³Á¤ÇÏÁö ¾Ê¾Ò½À´Ï´Ù."); } } } ?>
|