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

Revision 15378, 838 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' => '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' => ''
18);
19
20$req = new HTTP_Request('https://linkpt.cardservice.co.jp/cgi-bin/order.cgi?orders');
21$req->setMethod(HTTP_REQUEST_METHOD_POST);
22$req->addPostDataArray($arrData);
23
24if (!PEAR::isError($req->sendRequest())) {
25    $response = $req->getResponseBody();
26    $response = mb_convert_encoding($response, CHAR_CODE, "Shift-JIS");
27    print('?');
28} else {
29    print('err');
30}
31$req->clearPostData();
32
33sfPrintR($response);
34?>
Note: See TracBrowser for help on using the repository browser.