source: branches/feature-module-zeus/html/test/naka/zeus.php @ 15389

Revision 15389, 808 bytes checked in by naka, 13 years ago (diff)
Line 
1<?php
2require_once("../../require.php");
3require_once(DATA_PATH . "module/Request.php");
4
5$arrData = array(
6    'clientip' => '94181',
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' => ''
18);
19
20sfPrintR($arrData);
21
22$req = new HTTP_Request('https://linkpt.cardservice.co.jp/cgi-bin/secure.cgi');
23$req->setMethod(HTTP_REQUEST_METHOD_POST);
24$req->addPostDataArray($arrData);
25
26if (!PEAR::isError($req->sendRequest())) {
27    $response = $req->getResponseBody();
28    $response = mb_convert_encoding($response, "EUC-JP", "Shift-JIS");
29}
30$req->clearPostData();
31
32sfPrintR($response);
33?>
Note: See TracBrowser for help on using the repository browser.