-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGetWalletTransHistoryExample.php
More file actions
48 lines (42 loc) · 1.4 KB
/
GetWalletTransHistoryExample.php
File metadata and controls
48 lines (42 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
require_once "./includes.php";
$client = new Directkit\Service_mb_xml(array("trace"=>true), DIRECTKIT_WS."?wsdl");
$param = new Directkit\GetWalletTransHistory(null, null, null, null, null, null, null, null, null);
$param->wlLogin = LOGIN;
$param->wlPass = PASSWORD;
$param->language = "fr";
$param->version = VERSION;
$param->walletIp = getUserIP();
$param->walletUa = UA;
$param->wallet = "8888";
$response = $client->GetWalletTransHistory($param);
//print the response
echo "<pre>".json_encode($response, JSON_PRETTY_PRINT)."</pre>";
/*
{
"GetWalletTransHistoryResult": {
"TRANS": {
"HPAY": [
{
"ID": "3627",
"DATE": "03\/05\/2016 14:36:04",
"SEN": "",
"REC": "8888",
"DEB": "0.00",
"CRED": "12.00",
"COM": "0.00",
"MSG": "",
"STATUS": "4",
"EXTRA": {
"IS3DS": "1",
"CTRY": "",
"AUTH": ""
},
"INT_MSG": "05-99-51-ERR_PSP_REFUSED",
"MLABEL": "",
"TYPE": "0",
"MTOKEN": "f49fac0fcdb949539671b27aadd51c43"
},
....
*/
//you can access to $response->GetWalletTransHistoryResult->TRANS->HPAY