-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCustomerAccountBalancesGet.php
More file actions
39 lines (31 loc) · 1.06 KB
/
CustomerAccountBalancesGet.php
File metadata and controls
39 lines (31 loc) · 1.06 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
<?php
define('BASE_DIR', dirname(__FILE__));
$config = include(BASE_DIR . '/config.php');
//Create the soapClient object
$soapClient = new SoapClient("https://www.bizcurrency1.com/GPWebServiceBeta/IGPWebService1.svc?singleWsdl");
$params = array(
"request" => array(
"ServiceCallerIdentity" => array(
"LoginId" => $config->username,
"Password" => $config->password,
"ServiceCallerId" => $config->callerId
)
)
);
$response = $soapClient->UserSettingsGetSingle($params);
printf("--------------------------\nWinstantPay WS Response\n--------------------------\n");
$userId = $response->UserSettingsGetSingleResult->UserSettings->UserId;
printf("User ID is %s\n",$userId);
$params = array(
"request" => array(
"ServiceCallerIdentity" => array(
"LoginId" => $config->username,
"Password" => $config->password,
"ServiceCallerId" => $config->callerId
),
"UserId" => $userId
)
);
$response = $soapClient->CustomerAccountBalancesGet($params);
printf("--------------------------\nWinstantPay WS Response\n--------------------------\n");
var_dump($response);