Changeset 7794 for temp/trunk/html
- Timestamp:
- 2006/11/08 16:12:36 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/html/test/naka/shopcgi.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/test/naka/shopcgi.php
r7793 r7794 4 4 require_once(DATA_PATH . "module/Request.php"); 5 5 6 /*7 8 from index2.html9 10 Array11 (12 [TenantNo] => 1111111113 [OrderId] => 2006-11-08-11-39-53-96614 [JobCd] => CHECK15 [Amount] =>16 [Tax] =>17 [Currency] =>18 [Memo] =>19 )20 21 */22 23 /*24 25 ¥»¥ó¥¿¤Ø¤ÎÁ÷¿®¥Ç¡¼¥¿26 27 OrderId=>2006-11-08-12-43-21-93528 TdTenantName=>29 TdFlag=>30 ShopId=>test31 Amount=>032 ShopPass=>test33 Currency=>34 Tax=>035 JobCd=>CHECK36 TenantNo=>TenantNo37 38 */39 40 6 $entry_url = "http://mod-i.ccsware.net/ohayou/EntryTran.php"; 41 7 $exec_url = "https://mod-i.ccsware.net/ohayou/ExecTran.php"; 8 // ¼õÃíÈÖ¹æ¤Î¼èÆÀ 42 9 $order_id = sfGetUniqRandomId(); 43 10 … … 67 34 } 68 35 $req->clearPostData(); 69 70 if($response != "") { 71 $response = ereg_replace("[\n\r]", "", $response); 72 $arrTemp = split("&", $response); 73 foreach($arrTemp as $ret) { 74 list($key, $val) = split("=", $ret); 75 $arrRet[$key] = $val; 76 } 77 } 78 79 sfPrintR($arrRet); 36 $arrRet = lfGetPostArray($response); 80 37 81 38 // ·èºÑ¾ðÊó¤ÎÁ÷¿® 82 /*83 [AccessId] => 60f511479544541eb1ec9dc6f700b8c184 [AccessPass] => 925a413ce991e7b9230fbc575b9dc43085 [OrderId] => 2006-11-08-13-08-07-73286 [RetURL] => http://test.ec-cube.net/cgi-bin/ShopCGI/cgi-1/ShopBuy.pl87 [CardType] => VISA, 11111, 111111111111111111111111111111111111, 111111111188 [Method] => 289 [PayTimes] => 490 [CardNo1] => 411191 [CardNo2] => 111192 [CardNo3] => 111193 [CardNo4] => 111194 [ExpireMM] => 0695 [ExpireYY] => 0796 [ClientFieldFlag] => 197 [ClientField1] => f198 [ClientField2] => f299 [ClientField3] => f3100 */101 39 $arrData = array( 102 40 'AccessId' => $arrRet['ACCESS_ID'], … … 120 58 ); 121 59 122 sfPrintR($arrData);123 124 60 $req = new HTTP_Request($exec_url); 125 61 $req->setMethod(HTTP_REQUEST_METHOD_POST); … … 134 70 $req->clearPostData(); 135 71 136 print("<!--"); 137 sfPrintR($response); 138 print("-->"); 72 $arrRet = lfGetPostArray($response); 139 73 74 sfPrintR($arrRet); 75 76 //--------------------------------------------------------------------------------------------------------------------------------- 77 function lfGetPostArray($text) { 78 if($text != "") { 79 $text = ereg_replace("[\n\r]", "", $text); 80 $arrTemp = split("&", $text); 81 foreach($arrTemp as $ret) { 82 list($key, $val) = split("=", $ret); 83 $arrRet[$key] = $val; 84 } 85 } 86 return $arrRet; 87 } 140 88 ?>
Note: See TracChangeset
for help on using the changeset viewer.
