source: branches/feature-module-paygent/data/downloads/module/mdl_paygent/mdl_paygent.inc @ 15168

Revision 15168, 13.8 KB checked in by naka, 14 years ago (diff)

ペイジェント決済モジュール

Line 
1<?php
2/**
3 *
4 * @copyright   2000-2006 LOCKON CO.,LTD. All Rights Reserved.
5 * @version CVS: $Id: mdl_epsilon.inc 7162 2006-11-18 09:53:33Z kakinaka $
6 * @link        http://www.lockon.co.jp/
7 *
8 */
9$paygent_credit_php_dir = realpath(dirname( __FILE__));
10ini_set('include_path', $paygent_credit_php_dir . PATH_SEPARATOR . ini_get('include_path'));
11
12$check_path = $paygent_credit_php_dir . "/" . "jp/co/ks/merchanttool/connectmodule/";
13
14// paygent¥â¥¸¥å¡¼¥ë¤ÎÆɹþ
15include_once("jp/co/ks/merchanttool/connectmodule/entity/ResponseDataFactory.php");
16include_once("jp/co/ks/merchanttool/connectmodule/system/PaygentB2BModule.php");
17include_once("jp/co/ks/merchanttool/connectmodule/exception/PaygentB2BModuleConnectException.php");
18include_once("jp/co/ks/merchanttool/connectmodule/exception/PaygentB2BModuleException.php");
19
20// ¥Ú¥¤¥¸¥§¥ó¥È·èºÑ¤Î¥â¥¸¥å¡¼¥ëID¡Êdtb_module¤È¹ç¤ï¤»¤ë¡Ë
21define("MDL_PAYGENT_ID", 9);
22
23// ¥Ú¥¤¥¸¥§¥ó¥È¤Î³Æʧ¹þ¤ÎÂбþÈÖ¹æ
24/*
25    ÅÅʸ¼ïÊ̤òɽ¤¹¶èʬ
26    010¡§ATM·èºÑ¿½¹þ
27    020¡§Ž¶Ž°ŽÄŽÞ·èºÑŽµŽ°Ž¿ŽØ
28    021¡§Ž¶Ž°ŽÄŽÞ·èºÑŽµŽ°Ž¿ŽØŽ·Ž¬ŽÝŽ¾ŽÙ
29    022¡§Ž¶Ž°ŽÄŽÞ·èºÑÇä¾å
30    023¡§Ž¶Ž°ŽÄŽÞ·èºÑÇä¾åŽ·Ž¬ŽÝŽ¾ŽÙ
31    024¡§Ž¶Ž°ŽÄŽÞ·èºÑ3DŽµŽ°Ž¿ŽØ
32    030¡§ŽºŽÝŽËŽÞŽÆ·èºÑ(ÈÖ¹æÊý¼°)¿½¹þ
33    040¡§ŽºŽÝŽËŽÞŽÆ·èºÑ(ʧ¹þɼÊý¼°)¿½¹þ
34    050¡§¶ä¹ÔŽÈŽ¯ŽÄ·èºÑ¿½¹þ
35    060¡§¶ä¹Ô¥Í¥Ã¥È·èºÑASP
36    090¡§·èºÑ¾ðÊó¾È²ñ
37 */
38define("PAYGENT_BANK", '050');
39define("PAYGENT_ATM", '010');
40define("PAYGENT_CONVENI", '030');
41define("PAYGENT_CREDIT", '020');
42
43// »Ùʧ¤¤ÊýË¡¤Î̾Á°
44define("MDL_PAYGENT_CREDIT_NAME", "PAYGENT¥¯¥ì¥¸¥Ã¥È·èºÑ");
45define("MDL_PAYGENT_CONVENI_NAME", "PAYGENT¥³¥ó¥Ó¥Ë·èºÑ");
46
47define ("CHARGE_MAX", 500000);
48define ("SEVEN_CHARGE_MAX", 300000);
49
50//¥³¥ó¥Ó¥Ë¤Î¼ïÎà
51$arrConvenience = array(
52    '00C016' => '¥»¥¤¥³¡¼¥Þ¡¼¥È',
53    '00C002' => '¥í¡¼¥½¥ó',
54    '00C004' => '¥ß¥Ë¥¹¥È¥Ã¥×',
55    '00C005' => '¥Õ¥¡¥ß¥ê¡¼¥Þ¡¼¥È',
56    '00C006' => '¥µ¥ó¥¯¥¹',
57    '00C007' => '¥µ¡¼¥¯¥ëK',
58    '00C014' => '¥Ç¥¤¥ê¡¼¥ä¥Þ¥¶¥­',
59    '00C001' => '¥»¥Ö¥ó¥¤¥ì¥Ö¥ó'
60);
61   
62// ¥Í¥Ã¥È¥Ð¥ó¥¯¤Î¼ïÎà
63$arrNetBank = array(
64    'D005' => 'e-payment',
65    'D008' => '¥Í¥Ã¥È¿¶¹þEDI',
66    'D009' => 'One\'s ¥À¥¤¥ì¥¯¥È',
67    'D033' => '¥¸¥ã¥Ñ¥ó¥Í¥Ã¥È¶ä¹Ô',
68    'D036' => '¥¤¡¼¥Ð¥ó¥¯' 
69);
70   
71// ¥¯¥ì¥¸¥Ã¥Èʬ³ä²ó¿ô
72$arrCreditSplit = array(
73    '10' => '°ì³çʧ¤¤',
74    '61-2' => 'ʬ³äʧ¤¤(2²ó)',
75    '61-3' => 'ʬ³äʧ¤¤(3²ó)',
76    '61-6' => 'ʬ³äʧ¤¤(6²ó)',
77    '61-10' => 'ʬ³äʧ¤¤(10²ó)',
78    '61-15' => 'ʬ³äʧ¤¤(15²ó)',
79    '61-20' => 'ʬ³äʧ¤¤(20²ó)',
80    '80' => '¥ê¥Üʧ¤¤'
81);
82
83/**************************************************************************************************************
84 * ´Ø¿ô̾   ¡§sfGetPaygentShare
85 * ½èÍýÆâÍÆ ¡§¥Ú¥¤¥¸¥§¥ó¥È¾ðÊóÁ÷¿®¤Î¶¦Ä̽èÍý
86 * °ú¿ô1    ¡§
87 * °ú¿ô2    ¡§
88 * °ú¿ô3    ¡§
89 * Ìá¤êÃÍ   ¡§¼èÆÀ·ë²Ì
90 **************************************************************************************************************/
91function sfGetPaygentShare($telegram_kind, $arrData) {
92    /** ¶¦ÄÌÅÅʸ **/   
93    // ¥Þ¡¼¥Á¥ã¥ó¥ÈID
94    $arrSend['merchant_id'] = "11220";
95    // ÀܳID
96    $arrSend['connect_id'] = "lockon";
97    // Àܳ¥Ñ¥¹¥ï¡¼¥É
98    $arrSend['connect_password'] = "EFa04KcPwo";
99    // ÅÅʸ¼ïÊÌID
100    $arrSend['telegram_kind'] = $telegram_kind;
101    // ÅÅʸ¥Ð¡¼¥¸¥ç¥ó
102    $arrSend['telegram_version'] = "1.0";
103    // ¥Þ¡¼¥Á¥ã¥ó¥È¼è°úID
104    $arrSend['trading_id'] = $arrData['order_id'];
105
106    return $arrSend;
107}
108   
109/**************************************************************************************************************
110 * ´Ø¿ô̾   ¡§sfSendPaygentCredit
111 * ½èÍýÆâÍÆ ¡§¥¯¥ì¥¸¥Ã¥È¾ðÊó¤ÎÁ÷¿®
112 * °ú¿ô1    ¡§
113 * °ú¿ô2    ¡§
114 * °ú¿ô3    ¡§
115 * Ìá¤êÃÍ   ¡§¼èÆÀ·ë²Ì
116 **************************************************************************************************************/
117function sfSendPaygentCredit($arrData, $arrInput, $uniqid) {
118// Àܳ¥â¥¸¥å¡¼¥ë¤Î¥¤¥ó¥¹¥¿¥ó¥¹¼èÆÀ (¥³¥ó¥¹¥È¥é¥¯¥¿)¤È½é´ü²½
119    $p = new PaygentB2BModule();
120    $p->init();
121   
122    // Ž¶Ž°ŽÄŽÞ·èºÑŽµŽ°Ž¿ŽØ
123    $arrSend = sfGetPaygentShare(PAYGENT_CREDIT, $arrData);
124       
125    /** ¸ÄÊÌÅÅʸ **/
126   
127    // ·èºÑ¶â³Û
128    $arrSend['payment_amount'] = $arrData['payment_total'];
129    // ¥«¡¼¥ÉÈÖ¹æ
130    $arrSend['card_number'] = $arrInput['card_no01'].$arrInput['card_no02'].$arrInput['card_no03'].$arrInput['card_no04'];
131    // ¥«¡¼¥ÉÍ­¸ú´ü¸Â(MMYY)
132    $arrSend['card_valid_term'] = $arrInput['card_month'].$arrInput['card_year'];
133    // »Ùʧ¤¤¶èʬ
134    /*
135     * 10:1²ó
136     * 23:¥Ü¡¼¥Ê¥¹1²ó
137     * 61:ʬ³ä
138     * 80:¥ê¥Ü¥ë¥Ó¥ó¥°
139     */
140    $arrSend['payment_class'] = '10';
141    // ʬ³ä²ó¿ô
142    $arrSend['split_count'] = '';   
143    // 3D¥»¥­¥å¥¢ÉÞÍܶèʬ
144    $arrSend['3dsecure_ryaku'] = '1';
145       
146    // ÅÅʸ¤ÎÁ÷ÉÕ
147    foreach($arrSend as $key => $val) {
148        $p->reqPut($key, $val);
149    }
150   
151    // ÅÅʸ¤ÎÁ÷¿®
152    $p->post();
153
154    // ±þÅú¤ò½èÍý
155    $arrRet = sfPaygentResponse(PAYGENT_CREDIT, $p, $uniqid);
156   
157    return $arrRet;
158}
159
160/**************************************************************************************************************
161 * ´Ø¿ô̾   ¡§sfSendPaygentConveni
162 * ½èÍýÆâÍÆ ¡§¥¯¥ì¥¸¥Ã¥È¾ðÊó¤ÎÁ÷¿®
163 * °ú¿ô1    ¡§
164 * °ú¿ô2    ¡§
165 * °ú¿ô3    ¡§
166 * Ìá¤êÃÍ   ¡§¼èÆÀ·ë²Ì
167 **************************************************************************************************************/
168function sfSendPaygentConveni($arrData, $arrInput, $uniqid) {
169// Àܳ¥â¥¸¥å¡¼¥ë¤Î¥¤¥ó¥¹¥¿¥ó¥¹¼èÆÀ (¥³¥ó¥¹¥È¥é¥¯¥¿)¤È½é´ü²½
170    $p = new PaygentB2BModule();
171    $p->init();
172   
173    // ¥³¥ó¥Ó¥Ë·èºÑ
174    $arrSend = sfGetPaygentShare(PAYGENT_CONVENI, $arrData);
175   
176    /** ¸ÄÊÌÅÅʸ **/
177   
178    // ·èºÑ¶â³Û
179    $arrSend['payment_amount'] = $arrData['payment_total'];
180    // ÍøÍѼÔÀ«
181    $arrSend['customer_family_name'] = $arrInput['customer_family_name'];
182    // ÍøÍѼÔ̾
183    $arrSend['customer_name'] = $arrInput['customer_name'];
184    // ÍøÍѼÔÀ«È¾³Ñ¥«¥Ê
185    $arrSend['customer_family_name_kana'] = mb_convert_kana($arrInput['customer_family_name_kana'],'k');
186    // ÍøÍѼÔ̾Ⱦ³Ñ¥«¥Ê
187    $arrSend['customer_name_kana'] = mb_convert_kana($arrInput['customer_name_kana'],'k');
188    // ÍøÍѼÔÅÅÏÃÈÖ¹æ
189    $arrSend['customer_tel'] = $arrInput['customer_tel'];
190    // »Ùʧ´ü¸ÂÆü
191    $arrSend['payment_limit_date'] = '15';
192    // ¥³¥ó¥Ó¥Ë´ë¶È¥³¡¼¥É
193    $arrSend['cvs_company_id'] = $arrInput['cvs_company_id'];
194    // »Ùʧ¼ïÊÌ
195    $arrSend['sales_type'] = '1';
196
197    sfPrintR($arrSend);
198   
199    // ÅÅʸ¤ÎÁ÷ÉÕ
200    foreach($arrSend as $key => $val) {
201        // Shift-JIS¤Ë¥¨¥ó¥³¡¼¥É¤¹¤ëɬÍפ¢¤ê
202        $enc_val = mb_convert_encoding($val, "Shift-JIS", CHAR_CODE);       
203        $p->reqPut($key, $enc_val);
204    }
205   
206    // ÅÅʸ¤ÎÁ÷¿®
207    $p->post();
208
209    // ±þÅú¤ò½èÍý
210    $arrRet = sfPaygentResponse(PAYGENT_CONVENI, $p, $uniqid);
211   
212
213   
214    return $arrRet;
215}
216
217/**************************************************************************************************************
218 * ´Ø¿ô̾   ¡§sfSendPaygentATM
219 * ½èÍýÆâÍÆ ¡§ATM·èºÑ¾ðÊó¤ÎÁ÷¿®
220 * °ú¿ô1    ¡§
221 * °ú¿ô2    ¡§
222 * °ú¿ô3    ¡§
223 * Ìá¤êÃÍ   ¡§¼èÆÀ·ë²Ì
224 **************************************************************************************************************/
225function sfSendPaygentATM($arrData, $arrInput, $uniqid) {
226// Àܳ¥â¥¸¥å¡¼¥ë¤Î¥¤¥ó¥¹¥¿¥ó¥¹¼èÆÀ (¥³¥ó¥¹¥È¥é¥¯¥¿)¤È½é´ü²½
227    $p = new PaygentB2BModule();
228    $p->init();
229   
230    // ATM·èºÑ
231    $arrSend = sfGetPaygentShare(PAYGENT_ATM, $arrData);
232   
233    sfPrintR($arrInput);
234   
235    /** ¸ÄÊÌÅÅʸ **/
236   
237    // ·èºÑ¶â³Û
238    $arrSend['payment_amount'] = $arrData['payment_total'];
239
240    // ÍøÍѼÔÀ«
241    $arrSend['customer_family_name'] = $arrInput['customer_family_name'];
242    // ÍøÍѼÔ̾
243    $arrSend['customer_name'] = $arrInput['customer_name'];
244    // ÍøÍѼÔÀ«È¾³Ñ¥«¥Ê
245    $arrSend['customer_family_name_kana'] = mb_convert_kana($arrInput['customer_family_name_kana'],'k');
246    // ÍøÍѼÔ̾Ⱦ³Ñ¥«¥Ê
247    $arrSend['customer_name_kana'] = mb_convert_kana($arrInput['customer_name_kana'],'k');
248    // ·èºÑÆâÍÆ
249    $arrSend['payment_detail'] = '¥ª¥ó¥é¥¤¥ó¥·¥ç¥Ã¥Ô¥ó¥°';
250    // ·èºÑÆâÍÆȾ³Ñ¥«¥Ê
251    $arrSend['payment_detail_kana'] = 'ŽµŽÝŽ×Ž²ŽÝŽ¼Ž®Ž¯ŽËŽßŽÝŽ¸ŽÞ';
252    // »Ùʧ´ü¸ÂÆü
253    $arrSend['payment_limit_date'] = '15';
254   
255    // ÅÅʸ¤ÎÁ÷ÉÕ
256    foreach($arrSend as $key => $val) {
257        // Shift-JIS¤Ë¥¨¥ó¥³¡¼¥É¤¹¤ëɬÍפ¢¤ê
258        $enc_val = mb_convert_encoding($val, "Shift-JIS", CHAR_CODE);       
259        $p->reqPut($key, $enc_val);
260    }
261   
262    // ÅÅʸ¤ÎÁ÷¿®
263    $p->post();
264   
265    // ±þÅú¤ò½èÍý
266    $arrRet = sfPaygentResponse(PAYGENT_ATM, $p, $uniqid);
267   
268    return $arrRet;
269}
270
271/**************************************************************************************************************
272 * ´Ø¿ô̾   ¡§sfSendPaygentBANK
273 * ½èÍýÆâÍÆ ¡§¶ä¹ÔNET·èºÑ¾ðÊó¤ÎÁ÷¿®
274 * °ú¿ô1    ¡§
275 * °ú¿ô2    ¡§
276 * °ú¿ô3    ¡§
277 * Ìá¤êÃÍ   ¡§¼èÆÀ·ë²Ì
278 **************************************************************************************************************/
279function sfSendPaygentBANK($arrData, $arrInput, $uniqid) {
280// Àܳ¥â¥¸¥å¡¼¥ë¤Î¥¤¥ó¥¹¥¿¥ó¥¹¼èÆÀ (¥³¥ó¥¹¥È¥é¥¯¥¿)¤È½é´ü²½
281    $p = new PaygentB2BModule();
282    $p->init();
283   
284    // ATM·èºÑ
285    $arrSend = sfGetPaygentShare(PAYGENT_BANK, $arrData);
286
287    /** ¸ÄÊÌÅÅʸ **/
288   
289    $arrSend['bank_code'] = $arrInput['bank_code'];
290    // ·èºÑ¶â³Û
291    $arrSend['amount'] = $arrData['payment_total'];
292    // ÀÁµáÆâÍÆ¥«¥Ê
293    $arrSend['claim_kana'] = '¥«¥Ê';
294    // ÀÁµáÆâÍÆ´Á»ú
295    $arrSend['claim_kanji'] = '´Á»ú';   
296    // ÍøÍѼÔÀ«
297    $arrSend['customer_family_name'] = $arrInput['customer_family_name'];
298    // ÍøÍѼÔ̾
299    $arrSend['customer_name'] = $arrInput['customer_name'];
300    // ÍøÍѼÔÀ«È¾³Ñ¥«¥Ê
301    $arrSend['customer_family_name_kana'] = mb_convert_kana($arrInput['customer_family_name_kana'],'k');
302    // ÍøÍѼÔ̾Ⱦ³Ñ¥«¥Ê
303    $arrSend['customer_name_kana'] = mb_convert_kana($arrInput['customer_name_kana'],'k');
304    // PC-Mobile¶èʬ
305    /*
306     * 0:PC
307     * 1:docomo
308     * 2:au
309     * 3:softbank
310     */
311    $arrSend['pc_mobile_type'] = '0';
312    // Ìá¤ê£Õ£Ò£Ì
313    $arrSend['return_url'] = "http://www.ec-cube.net/";
314       
315    // ÅÅʸ¤ÎÁ÷ÉÕ
316    foreach($arrSend as $key => $val) {
317        // Shift-JIS¤Ë¥¨¥ó¥³¡¼¥É¤¹¤ëɬÍפ¢¤ê
318        $enc_val = mb_convert_encoding($val, "Shift-JIS", CHAR_CODE);
319        $p->reqPut($key, $enc_val);
320    }
321   
322    // ÅÅʸ¤ÎÁ÷¿®
323    $p->post();
324   
325    // ±þÅú¤ò½èÍý
326    $arrRet = sfPaygentResponse(PAYGENT_BANK, $p, $uniqid);
327   
328    return $arrRet;
329}
330
331/**************************************************************************************************************
332 * ´Ø¿ô̾   ¡§sfPaygentResponse
333 * ½èÍýÆâÍÆ ¡§±þÅú¤ò½èÍý¤¹¤ë
334 * °ú¿ô1    ¡§
335 * °ú¿ô2    ¡§
336 * °ú¿ô3    ¡§
337 * Ìá¤êÃÍ   ¡§¼èÆÀ·ë²Ì
338 **************************************************************************************************************/
339
340function sfPaygentResponse($telegram_kind, $objPaygent, $uniqid) {
341    global $arrConvenience;
342   
343    // ½èÍý·ë²Ì¼èÆÀ¡Ê¶¦ÄÌ¡Ë
344    $resultStatus = $objPaygent->getResultStatus(); # ½èÍý·ë²Ì 0=Àµ¾ï½ªÎ», 1=°Û¾ï½ªÎ»
345    $responseCode = $objPaygent->getResponseCode(); # °Û¾ï½ªÎ»»þ¡¢¥ì¥¹¥Ý¥ó¥¹¥³¡¼¥É¤¬¼èÆÀ¤Ç¤­¤ë
346    $responseDetail = $objPaygent->getResponseDetail(); # °Û¾ï½ªÎ»»þ¡¢¥ì¥¹¥Ý¥ó¥¹¾ÜºÙ¤¬¼èÆÀ¤Ç¤­¤ë
347
348    // Shift-JIS¤Ç±þÅú¤¬¤¢¤ë¤Î¤Ç¡¢¥¨¥ó¥³¡¼¥É¤¹¤ë¡£
349    $responseDetail = mb_convert_encoding($responseDetail, CHAR_CODE, "Shift-JIS");
350       
351   
352    // ¥ì¥¹¥Ý¥ó¥¹¤Î¼èÆÀ
353    while($objPaygent->hasResNext()) {
354        # ¥Ç¡¼¥¿¤¬Â¸ºß¤¹¤ë¸Â¤ê¡¢¼èÆÀ
355        $arrRes[] = $objPaygent->resNext(); # Í×µá·ë²Ì¼èÆÀ
356    }
357
358    switch($telegram_kind) {
359    // ¥³¥ó¥Ó¥Ë·èºÑ¤Î¾ì¹ç
360    case PAYGENT_CONVENI:       
361        // ¥¿¥¤¥È¥ë¤òÀßÄꤹ¤ë
362        $arrMemo['title'] = sfSetConvMSG("¥³¥ó¥Ó¥Ë¤ª»Ùʧ¾ðÊó", true);   
363        //ʧ¹þɼURL(PC)
364        if($arrRes[0]['receipt_print_url'] != "") {
365            $arrMemo['receipt_print_url'] = sfSetConvMSG("ʧ¹þɼURL", $arrRes[0]['receipt_print_url']);
366        }
367        //ʧ¹þɼÈÖ¹æ
368        $arrMemo['receipt_number'] = sfSetConvMSG("ʧ¹þɼÈÖ¹æ", $arrRes[0]['receipt_number']);
369        $arrCVS = split("-", $arrRes[0]['usable_cvs_company_id']);
370        foreach($arrCVS as $val) {
371            if($cvsLine != "") {
372                $cvsLine.= ",".$arrConvenience[$val];               
373            } else {
374                $cvsLine = $arrConvenience[$val];
375            }
376        }
377        //Âоݥ³¥ó¥Ó¥Ë
378        $arrMemo['usable_cvs_company_id'] = sfSetConvMSG("¤ª»Ùʧ²Äǽ¤Ê¥³¥ó¥Ó¥Ë", $cvsLine);         
379        // »Ùʧ´üÆü
380        $arrMemo['payment_limit_date'] = sfSetConvMSG("¤ª»Ùʧ´üÆü", date("Yǯm·îdÆü", strtotime($arrRes[0]['payment_limit_date'])));
381        // ¼õÃí¥Æ¡¼¥Ö¥ë¤ËÊݸ
382        $arrVal["memo02"] = serialize($arrMemo);
383        break;
384    // ATM·èºÑ¤Î¾ì¹ç
385    case PAYGENT_ATM:
386        // ¥¿¥¤¥È¥ë¤òÀßÄꤹ¤ë
387        $arrMemo['title'] = sfSetConvMSG("ATM¤ª»Ùʧ¾ðÊó", true);   
388        $arrMemo['pay_center_number'] = sfSetConvMSG("¼ýǼµ¡´ØÈÖ¹æ", $arrRes[0]['pay_center_number']);
389        $arrMemo['customer_number'] = sfSetConvMSG("¤ªµÒÍÍÈÖ¹æ", $arrRes[0]['customer_number']);
390        $arrMemo['conf_number'] = sfSetConvMSG("³ÎǧÈÖ¹æ", $arrRes[0]['pay_center_number']);
391        // »Ùʧ´üÆü
392        $arrMemo['payment_limit_date'] = sfSetConvMSG("¤ª»Ùʧ´üÆü", date("Yǯm·îdÆü", strtotime($arrRes[0]['payment_limit_date'])));
393        // ¼õÃí¥Æ¡¼¥Ö¥ë¤ËÊݸ
394        $arrVal["memo02"] = serialize($arrMemo);       
395        break;
396    default:
397        // ¶õ¤ÎÇÛÎó¤ò³ÊǼ¤·¤Æ¤ª¤¯
398        $arrVal["memo02"] = serialize(array());
399        break;
400    }
401   
402    // ¼õÃí¥Æ¡¼¥Ö¥ë¤Ëµ­Ï¿¤¹¤ë
403    $arrVal["memo01"] = $resultStatus;      // ½èÍý·ë²Ì
404    $arrVal["memo03"] = $responseCode;      // ¥ì¥¹¥Ý¥ó¥¹¥³¡¼¥É
405    $arrVal["memo04"] = $responseDetail;    // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸
406    $arrVal["memo05"] = $arrRes[0]['payment_id'];       // ¾µÇ§ÈÖ¹æ
407
408    // ¼õÃí°ì»þ¥Æ¡¼¥Ö¥ë¤Ë¹¹¿·
409    sfRegistTempOrder($uniqid, $arrVal);
410   
411    // ¾µÇ§ÈÖ¹æ¤È¥á¥Ã¥»¡¼¥¸¤òÊÖ¤¹
412    return $arrRes[0];
413}
414
415/**************************************************************************************************************
416 * ´Ø¿ô̾   ¡§sfSetConvMSG
417 * ½èÍýÆâÍÆ ¡§¥³¥ó¥Ó¥Ë¾ðÊóɽ¼¨ÍÑ
418 * °ú¿ô1    ¡§
419 * °ú¿ô2    ¡§
420 * °ú¿ô3    ¡§
421 * Ìá¤êÃÍ   ¡§¼èÆÀ·ë²Ì
422 **************************************************************************************************************/
423function sfSetConvMSG($name, $value){
424    return array("name" => $name, "value" => $value);
425}
426
427/**************************************************************************************************************
428 * ´Ø¿ô̾   ¡§sfPaygentDisp
429 * ½èÍýÆâÍÆ ¡§¶¦Ä̤Îɽ¼¨½èÍý
430 * °ú¿ô1    ¡§
431 * °ú¿ô2    ¡§
432 * °ú¿ô3    ¡§
433 * Ìá¤êÃÍ   ¡§¼èÆÀ·ë²Ì
434 **************************************************************************************************************/
435function sfPaygentDisp($objPage, $payment_id) {
436    $objQuery = new SC_Query();
437    // »Ùʧ¤¤ÊýË¡¤ÎÀâÌÀ²èÁü¤ò¼èÆÀ¤¹¤ë¡£
438    $arrRet = $objQuery->select("payment_method, payment_image", "dtb_payment", "payment_id = ?", array($payment_id));
439    $objPage->tpl_payment_method = $arrRet[0]['payment_method'];
440    $objPage->tpl_payment_image = $arrRet[0]['payment_image'];
441    return $objPage;
442}
443?>
Note: See TracBrowser for help on using the repository browser.