| Revision 7743,
1.0 KB
checked in by naka, 20 years ago
(diff) |
|
* empty log message *
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 | <?php |
|---|
| 2 | |
|---|
| 3 | require_once("../../require.php"); |
|---|
| 4 | require_once(DATA_PATH . "module/Request.php"); |
|---|
| 5 | |
|---|
| 6 | /* |
|---|
| 7 | |
|---|
| 8 | from index2.html |
|---|
| 9 | |
|---|
| 10 | Array |
|---|
| 11 | ( |
|---|
| 12 | [TenantNo] => 11111111 |
|---|
| 13 | [OrderId] => 2006-11-08-11-39-53-966 |
|---|
| 14 | [JobCd] => CHECK |
|---|
| 15 | [Amount] => |
|---|
| 16 | [Tax] => |
|---|
| 17 | [Currency] => |
|---|
| 18 | [Memo] => |
|---|
| 19 | ) |
|---|
| 20 | |
|---|
| 21 | */ |
|---|
| 22 | |
|---|
| 23 | /* |
|---|
| 24 | |
|---|
| 25 | ¥»¥ó¥¿¤Ø¤ÎÁ÷¿®¥Ç¡¼¥¿ |
|---|
| 26 | |
|---|
| 27 | OrderId=>2006-11-08-12-43-21-935 |
|---|
| 28 | TdTenantName=> |
|---|
| 29 | TdFlag=> |
|---|
| 30 | ShopId=>test |
|---|
| 31 | Amount=>0 |
|---|
| 32 | ShopPass=>test |
|---|
| 33 | Currency=> |
|---|
| 34 | Tax=>0 |
|---|
| 35 | JobCd=>CHECK |
|---|
| 36 | TenantNo=>TenantNo |
|---|
| 37 | |
|---|
| 38 | */ |
|---|
| 39 | |
|---|
| 40 | $order_url = "http://mod-i.ccsware.net/ohayou/EntryTran.php"; |
|---|
| 41 | |
|---|
| 42 | $arrData = array( |
|---|
| 43 | 'OrderId' => '2006-11-08-12-55-26-190', |
|---|
| 44 | 'TdTenantName' => '', |
|---|
| 45 | 'TdFlag' => '', |
|---|
| 46 | 'ShopId' => 'test', |
|---|
| 47 | 'Amount' => '100', |
|---|
| 48 | 'ShopPass' => 'test', |
|---|
| 49 | 'Currency' => 'JPN', |
|---|
| 50 | 'Tax' => '5', |
|---|
| 51 | 'JobCd' => 'CHECK', |
|---|
| 52 | 'TenantNo' => 'TenantNo', |
|---|
| 53 | ); |
|---|
| 54 | |
|---|
| 55 | $req = new HTTP_Request($order_url); |
|---|
| 56 | $req->setMethod(HTTP_REQUEST_METHOD_POST); |
|---|
| 57 | |
|---|
| 58 | $arrSendData = array(); |
|---|
| 59 | $req->addPostDataArray($arrData); |
|---|
| 60 | |
|---|
| 61 | if (!PEAR::isError($req->sendRequest())) { |
|---|
| 62 | $response = $req->getResponseBody(); |
|---|
| 63 | } else { |
|---|
| 64 | $response = ""; |
|---|
| 65 | } |
|---|
| 66 | $req->clearPostData(); |
|---|
| 67 | |
|---|
| 68 | print($response); |
|---|
| 69 | |
|---|
| 70 | |
|---|
| 71 | ?> |
|---|
Note: See
TracBrowser
for help on using the repository browser.