Rev | Line | |
---|
[15376] | 1 | <?php
|
---|
| 2 | require_once("../../require.php");
|
---|
| 3 | require_once(DATA_PATH . "module/Request.php");
|
---|
| 4 |
|
---|
| 5 | $arrData = array(
|
---|
[15377] | 6 | 'clientip' => '94183',
|
---|
| 7 | 'cardnumber' => '4568802714347842',
|
---|
| 8 | 'expyy' => '08',
|
---|
| 9 | 'expmm' => '02',
|
---|
| 10 | 'telno' => '0663467705',
|
---|
| 11 | 'email' => 'naka@lockon.co.jp',
|
---|
| 12 | 'sendid' => '1111',
|
---|
| 13 | 'username' => 'naka',
|
---|
| 14 | 'money' => '3600',
|
---|
| 15 | 'sendpoint' => 'eccube',
|
---|
| 16 | 'send' => 'mall',
|
---|
| 17 | 'pubsec' => ''
|
---|
[15376] | 18 | );
|
---|
| 19 |
|
---|
[15377] | 20 | $req = new HTTP_Request('https://linkpt.cardservice.co.jp/cgi-bin/order.cgi?orders');
|
---|
[15376] | 21 | $req->setMethod(HTTP_REQUEST_METHOD_POST);
|
---|
| 22 | $req->addPostDataArray($arrData);
|
---|
| 23 |
|
---|
| 24 | if (!PEAR::isError($req->sendRequest())) {
|
---|
| 25 | $response = $req->getResponseBody();
|
---|
[15379] | 26 | $response = mb_convert_encoding($response, "EUC-JP", "Shift-JIS");
|
---|
[15376] | 27 | }
|
---|
| 28 | $req->clearPostData();
|
---|
| 29 |
|
---|
| 30 | sfPrintR($response);
|
---|
| 31 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.