Changeset 7931 for temp/trunk
- Timestamp:
- 2006/11/09 09:22:05 (20 years ago)
- Location:
- temp/trunk/data/downloads/module/mdl_epsilon
- Files:
-
- 3 edited
-
card.php (modified) (1 diff)
-
convenience.php (modified) (1 diff)
-
mdl_epsilon.inc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/data/downloads/module/mdl_epsilon/card.php
r7813 r7931 90 90 91 91 // ¥Ç¡¼¥¿Á÷¿® 92 sfPostPaymentData($order_url, $arrData); 92 $arrXML = sfPostPaymentData($order_url, $arrData); 93 94 95 // ¥¨¥é¡¼¤¬¤¢¤ë¤«¥Á¥§¥Ã¥¯¤¹¤ë 96 $err_code = sfGetXMLValue($arrXML,'RESULT','ERR_CODE'); 97 98 if($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 93 109 94 110 //--------------------------------------------------------------------------------------------------------------------------------------------------------- -
temp/trunk/data/downloads/module/mdl_epsilon/convenience.php
r7926 r7931 119 119 120 120 // ¥Ç¡¼¥¿Á÷¿® 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 } 122 190 } 123 191 break; -
temp/trunk/data/downloads/module/mdl_epsilon/mdl_epsilon.inc
r7930 r7931 49 49 global $uniqid; 50 50 51 $arrVal = array(); 52 51 53 // POST¥Ç¡¼¥¿¤òÁ÷¿®¤·¡¢±þÅú¾ðÊó¤ò¼èÆÀ¤¹¤ë 52 54 $response = sfSendPostData($order_url, $arrData); … … 70 72 // ³«Êü¤¹¤ë 71 73 xml_parser_free($parser); 74 75 return $arrVal; 72 76 73 77 // ¥¨¥é¡¼¤¬¤¢¤ë¤«¥Á¥§¥Ã¥¯¤¹¤ë … … 96 100 //¥»¥Ö¥ó¥¤¥ì¥Ö¥ó 97 101 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) 100 104 $arrRet['cv_receipt_no'] = $receipt_no; //ʧ¹þɼÈÖ¹æ 101 105 break; 102 106 //¥Õ¥¡¥ß¥ê¡¼¥Þ¡¼¥È 103 107 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; //¼õÉÕÈÖ¹æ 107 111 break; 108 112 //¥í¡¼¥½¥ó 109 113 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; //ÅÅÏÃÈÖ¹æ 113 117 break; 114 118 //¥»¥¤¥³¡¼¥Þ¡¼¥È 115 119 case '32': 116 $arrRet['cv_type'] = $conveni_code; //¥³¥ó¥Ó¥Ë¤Î¼ïÎà120 $arrRet['cv_type'] = $conveni_code; //¥³¥ó¥Ó¥Ë¤Î¼ïÎà 117 121 $arrRet['cv_receipt_no'] = $receipt_no; //ʧ¹þɼÈÖ¹æ 118 $arrRet['cv_tel'] = $tel; //ÅÅÏÃÈÖ¹æ122 $arrRet['cv_tel'] = $tel; //ÅÅÏÃÈÖ¹æ 119 123 break; 120 124 //¥ß¥Ë¥¹¥È¥Ã¥× 121 125 case '33': 122 $arrRet['cv_type'] = $conveni_code; //¥³¥ó¥Ó¥Ë¤Î¼ïÎà123 $arrRet['cv_payment_url'] = $payment_url; //ʧ¹þɼURL126 $arrRet['cv_type'] = $conveni_code; //¥³¥ó¥Ó¥Ë¤Î¼ïÎà 127 $arrRet['cv_payment_url'] = $payment_url; //ʧ¹þɼURL 124 128 break; 125 129 //¥Ç¥¤¥ê¡¼¥ä¥Þ¥¶¥ 126 130 case '34': 127 $arrRet['cv_type'] = $conveni_code; //¥³¥ó¥Ó¥Ë¤Î¼ïÎà128 $arrRet['cv_payment_url'] = $payment_url; //ʧ¹þɼURL131 $arrRet['cv_type'] = $conveni_code; //¥³¥ó¥Ó¥Ë¤Î¼ïÎà 132 $arrRet['cv_payment_url'] = $payment_url; //ʧ¹þɼURL 129 133 break; 130 134 } … … 135 139 $sqlval['conveni_data'] = serialize($arrRet); 136 140 $sqlval['memo02'] = serialize($arrRet); 137 141 138 142 $url = URL_SHOP_COMPLETE; 139 143
Note: See TracChangeset
for help on using the changeset viewer.
