Changeset 7931 for temp/trunk


Ignore:
Timestamp:
2006/11/09 09:22:05 (20 years ago)
Author:
kakinaka
Message:

blank

Location:
temp/trunk/data/downloads/module/mdl_epsilon
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/data/downloads/module/mdl_epsilon/card.php

    r7813 r7931  
    9090 
    9191// ¥Ç¡¼¥¿Á÷¿® 
    92 sfPostPaymentData($order_url, $arrData); 
     92$arrXML = sfPostPaymentData($order_url, $arrData); 
     93 
     94 
     95// ¥¨¥é¡¼¤¬¤¢¤ë¤«¥Á¥§¥Ã¥¯¤¹¤ë 
     96$err_code = sfGetXMLValue($arrXML,'RESULT','ERR_CODE'); 
     97 
     98if($err_code != "") { 
     99    $err_detail = sfGetXMLValue($arrXML,'RESULT','ERR_DETAIL'); 
     100    sfDispSiteError(FREE_ERROR_MSG, "", true, "¹ØÆþ½èÍýÃæ¤Ë°Ê²¼¤Î¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤·¤¿¡£<br /><br /><br />¡¦" . $err_detail . "<br /><br /><br />¤³¤Î¼ê³¤­¤Ï̵¸ú¤È¤Ê¤ê¤Þ¤·¤¿¡£"); 
     101} else { 
     102    // Àµ¾ï¤Ê¿ä°Ü¤Ç¤¢¤ë¤³¤È¤òµ­Ï¿¤·¤Æ¤ª¤¯ 
     103    $objSiteSess->setRegistFlag(); 
     104     
     105    $url = sfGetXMLValue($arrXML,'RESULT','REDIRECT'); 
     106    header("Location: " . $url); 
     107} 
     108 
    93109 
    94110//--------------------------------------------------------------------------------------------------------------------------------------------------------- 
  • temp/trunk/data/downloads/module/mdl_epsilon/convenience.php

    r7926 r7931  
    119119             
    120120            // ¥Ç¡¼¥¿Á÷¿® 
    121             sfPostPaymentData($order_url, $arrSendData, "", false, PAYMENT_CONVENIENCE_ID); 
     121            $arrXML = sfPostPaymentData($order_url, $arrSendData); 
     122             
     123            // ¥¨¥é¡¼¤¬¤¢¤ë¤«¥Á¥§¥Ã¥¯¤¹¤ë 
     124            $err_code = sfGetXMLValue($arrVal,'RESULT','ERR_CODE'); 
     125             
     126            if($err_code != "") { 
     127                $err_detail = sfGetXMLValue($arrVal,'RESULT','ERR_DETAIL'); 
     128                sfDispSiteError(FREE_ERROR_MSG, "", false, "¹ØÆþ½èÍýÃæ¤Ë°Ê²¼¤Î¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤·¤¿¡£<br /><br /><br />¡¦" . $err_detail); 
     129            } else { 
     130                // Àµ¾ï¤Ê¿ä°Ü¤Ç¤¢¤ë¤³¤È¤òµ­Ï¿¤·¤Æ¤ª¤¯ 
     131                $objSiteSess->setRegistFlag(); 
     132                 
     133                $conveni_code = sfGetXMLValue($arrVal,'RESULT','CONVENI_CODE'); // ¥³¥ó¥Ó¥Ë¥³¡¼¥É 
     134                $receipt_no   = sfGetXMLValue($arrVal,'RESULT','RECEIPT_NO');   // ʧ¹þɼÈÖ¹æ 
     135                $payment_url = sfGetXMLValue($arrVal,'RESULT','HARAIKOMI_URL'); // ʧ¹þɼURL(PC) 
     136                $company_code = sfGetXMLValue($arrVal,'RESULT','KIGYOU_CODE');  // ´ë¶È¥³¡¼¥É 
     137                $order_no = sfGetXMLValue($arrVal,'RESULT','ORDER_NUMBER');     // ¼õÉÕÈÖ¹æ 
     138                $tel = $_POST["order_tel01"]."-".$_POST["order_tel02"]."-".$_POST["order_tel03"];   // ÅÅÏÃÈÖ¹æ 
     139                $payment_limit = sfGetXMLValue($arrVal,'RESULT','CONVENI_LIMIT');   // »Ùʧ´üÆü 
     140                 
     141                //¥³¥ó¥Ó¥Ë¤Î¼ïÎà 
     142                switch($conveni_code) { 
     143                //¥»¥Ö¥ó¥¤¥ì¥Ö¥ó 
     144                case '11': 
     145                    $arrRet['cv_type'] = $conveni_code;         //¥³¥ó¥Ó¥Ë¤Î¼ïÎà 
     146                    $arrRet['cv_payment_url'] = $payment_url;   //ʧ¹þɼURL(PC) 
     147                    $arrRet['cv_receipt_no'] = $receipt_no;     //ʧ¹þɼÈÖ¹æ 
     148                    break; 
     149                //¥Õ¥¡¥ß¥ê¡¼¥Þ¡¼¥È 
     150                case '21': 
     151                    $arrRet['cv_type'] = $conveni_code;         //¥³¥ó¥Ó¥Ë¤Î¼ïÎà 
     152                    $arrRet['cv_company_code'] = $company_code; //´ë¶È¥³¡¼¥É 
     153                    $arrRet['cv_order_no'] = $receipt_no;       //¼õÉÕÈÖ¹æ 
     154                    break; 
     155                //¥í¡¼¥½¥ó 
     156                case '31': 
     157                    $arrRet['cv_type'] = $conveni_code;         //¥³¥ó¥Ó¥Ë¤Î¼ïÎà 
     158                    $arrRet['cv_receipt_no'] = $receipt_no;     //ʧ¹þɼÈÖ¹æ 
     159                    $arrRet['cv_tel'] = $tel;                   //ÅÅÏÃÈÖ¹æ 
     160                    break; 
     161                //¥»¥¤¥³¡¼¥Þ¡¼¥È 
     162                case '32': 
     163                    $arrRet['cv_type'] = $conveni_code;         //¥³¥ó¥Ó¥Ë¤Î¼ïÎà 
     164                    $arrRet['cv_receipt_no'] = $receipt_no;     //ʧ¹þɼÈÖ¹æ 
     165                    $arrRet['cv_tel'] = $tel;                   //ÅÅÏÃÈÖ¹æ 
     166                    break; 
     167                //¥ß¥Ë¥¹¥È¥Ã¥× 
     168                case '33': 
     169                    $arrRet['cv_type'] = $conveni_code;         //¥³¥ó¥Ó¥Ë¤Î¼ïÎà 
     170                    $arrRet['cv_payment_url'] = $payment_url;   //ʧ¹þɼURL 
     171                    break; 
     172                //¥Ç¥¤¥ê¡¼¥ä¥Þ¥¶¥­ 
     173                case '34': 
     174                    $arrRet['cv_type'] = $conveni_code;         //¥³¥ó¥Ó¥Ë¤Î¼ïÎà 
     175                    $arrRet['cv_payment_url'] = $payment_url;   //ʧ¹þɼURL 
     176                    break; 
     177                } 
     178                 
     179                //»Ùʧ´ü¸Â 
     180                $arrRet['cv_payment_limit'] = $payment_limit; 
     181                //¥³¥ó¥Ó¥Ë·èºÑ¾ðÊó¤ò³ÊǼ 
     182                $sqlval['conveni_data'] = serialize($arrRet); 
     183                $sqlval['memo02'] = serialize($arrRet); 
     184     
     185                // ¼õÃí°ì»þ¥Æ¡¼¥Ö¥ë¤Ë¹¹¿· 
     186                sfRegistTempOrder($uniqid, $sqlval); 
     187                     
     188                header("Location: " . URL_SHOP_COMPLETE); 
     189            } 
    122190        } 
    123191        break; 
  • temp/trunk/data/downloads/module/mdl_epsilon/mdl_epsilon.inc

    r7930 r7931  
    4949    global $uniqid; 
    5050     
     51    $arrVal = array(); 
     52     
    5153    // POST¥Ç¡¼¥¿¤òÁ÷¿®¤·¡¢±þÅú¾ðÊó¤ò¼èÆÀ¤¹¤ë 
    5254    $response = sfSendPostData($order_url, $arrData); 
     
    7072    // ³«Êü¤¹¤ë 
    7173    xml_parser_free($parser); 
     74     
     75    return $arrVal; 
    7276     
    7377    // ¥¨¥é¡¼¤¬¤¢¤ë¤«¥Á¥§¥Ã¥¯¤¹¤ë 
     
    96100            //¥»¥Ö¥ó¥¤¥ì¥Ö¥ó 
    97101            case '11': 
    98                 $arrRet['cv_type'] = $conveni_code;                                 //¥³¥ó¥Ó¥Ë¤Î¼ïÎà 
    99                 $arrRet['cv_payment_url'] = $payment_url;                       //ʧ¹þɼURL(PC) 
     102                $arrRet['cv_type'] = $conveni_code;         //¥³¥ó¥Ó¥Ë¤Î¼ïÎà 
     103                $arrRet['cv_payment_url'] = $payment_url;   //ʧ¹þɼURL(PC) 
    100104                $arrRet['cv_receipt_no'] = $receipt_no;     //ʧ¹þɼÈÖ¹æ 
    101105                break; 
    102106            //¥Õ¥¡¥ß¥ê¡¼¥Þ¡¼¥È 
    103107            case '21': 
    104                 $arrRet['cv_type'] = $conveni_code;                         //¥³¥ó¥Ó¥Ë¤Î¼ïÎà 
    105                 $arrRet['cv_company_code'] = $company_code;                 //´ë¶È¥³¡¼¥É 
    106                 $arrRet['cv_order_no'] = $receipt_no;                           //¼õÉÕÈÖ¹æ 
     108                $arrRet['cv_type'] = $conveni_code;         //¥³¥ó¥Ó¥Ë¤Î¼ïÎà 
     109                $arrRet['cv_company_code'] = $company_code; //´ë¶È¥³¡¼¥É 
     110                $arrRet['cv_order_no'] = $receipt_no;       //¼õÉÕÈÖ¹æ 
    107111                break; 
    108112            //¥í¡¼¥½¥ó 
    109113            case '31': 
    110                 $arrRet['cv_type'] = $conveni_code;             //¥³¥ó¥Ó¥Ë¤Î¼ïÎà 
    111                 $arrRet['cv_receipt_no'] = $receipt_no;         //ʧ¹þɼÈÖ¹æ 
    112                 $arrRet['cv_tel'] = $tel;           //ÅÅÏÃÈÖ¹æ 
     114                $arrRet['cv_type'] = $conveni_code;         //¥³¥ó¥Ó¥Ë¤Î¼ïÎà 
     115                $arrRet['cv_receipt_no'] = $receipt_no;     //ʧ¹þɼÈÖ¹æ 
     116                $arrRet['cv_tel'] = $tel;                   //ÅÅÏÃÈÖ¹æ 
    113117                break; 
    114118            //¥»¥¤¥³¡¼¥Þ¡¼¥È 
    115119            case '32': 
    116                 $arrRet['cv_type'] = $conveni_code;                                 //¥³¥ó¥Ó¥Ë¤Î¼ïÎà 
     120                $arrRet['cv_type'] = $conveni_code;         //¥³¥ó¥Ó¥Ë¤Î¼ïÎà 
    117121                $arrRet['cv_receipt_no'] = $receipt_no;     //ʧ¹þɼÈÖ¹æ 
    118                 $arrRet['cv_tel'] = $tel;           //ÅÅÏÃÈÖ¹æ 
     122                $arrRet['cv_tel'] = $tel;                   //ÅÅÏÃÈÖ¹æ 
    119123                break; 
    120124            //¥ß¥Ë¥¹¥È¥Ã¥× 
    121125            case '33': 
    122                 $arrRet['cv_type'] = $conveni_code;                                     //¥³¥ó¥Ó¥Ë¤Î¼ïÎà 
    123                 $arrRet['cv_payment_url'] = $payment_url;       //ʧ¹þɼURL 
     126                $arrRet['cv_type'] = $conveni_code;         //¥³¥ó¥Ó¥Ë¤Î¼ïÎà 
     127                $arrRet['cv_payment_url'] = $payment_url;   //ʧ¹þɼURL 
    124128                break; 
    125129            //¥Ç¥¤¥ê¡¼¥ä¥Þ¥¶¥­ 
    126130            case '34': 
    127                 $arrRet['cv_type'] = $conveni_code;                                     //¥³¥ó¥Ó¥Ë¤Î¼ïÎà 
    128                 $arrRet['cv_payment_url'] = $payment_url;       //ʧ¹þɼURL 
     131                $arrRet['cv_type'] = $conveni_code;         //¥³¥ó¥Ó¥Ë¤Î¼ïÎà 
     132                $arrRet['cv_payment_url'] = $payment_url;   //ʧ¹þɼURL 
    129133                break; 
    130134            } 
     
    135139            $sqlval['conveni_data'] = serialize($arrRet); 
    136140            $sqlval['memo02'] = serialize($arrRet); 
    137              
     141 
    138142            $url = URL_SHOP_COMPLETE; 
    139143 
Note: See TracChangeset for help on using the changeset viewer.