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 |
|
---|
[15387] | 20 | sfPrintR($arrData);
|
---|
| 21 |
|
---|
[15386] | 22 | $req = new HTTP_Request('https://linkpt.cardservice.co.jp/cgi-bin/secure.cgi');
|
---|
[15376] | 23 | $req->setMethod(HTTP_REQUEST_METHOD_POST);
|
---|
| 24 | $req->addPostDataArray($arrData);
|
---|
| 25 |
|
---|
| 26 | if (!PEAR::isError($req->sendRequest())) {
|
---|
| 27 | $response = $req->getResponseBody();
|
---|
[15379] | 28 | $response = mb_convert_encoding($response, "EUC-JP", "Shift-JIS");
|
---|
[15376] | 29 | }
|
---|
| 30 | $req->clearPostData();
|
---|
| 31 |
|
---|
| 32 | sfPrintR($response);
|
---|
| 33 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.