Files
2026-05-13 09:43:32 -04:00

29 lines
828 B
PHP

<?php
require_once('../PPBootStrap.php');
$logger = new PPLoggingManager('Get Balance');
$getBalanceRequest = new GetBalanceRequestType();
$getBalanceRequest->ReturnAllCurrencies = $_REQUEST['returnAllCurrencies'];
$getBalanceReq = new GetBalanceReq();
$getBalanceReq->GetBalanceRequest = $getBalanceRequest;
$paypalService = new PayPalAPIInterfaceServiceService();
try {
/* wrap API method calls on the service object with a try catch */
$getBalanceResponse = $paypalService->GetBalance($getBalanceReq);
} catch (Exception $ex) {
include_once("../Error.php");
exit;
}
if(isset($getBalanceResponse)) {
echo "<table>";
echo "<tr><td>Ack :</td><td><div id='Ack'>$getBalanceResponse->Ack</div> </td></tr>";
echo "</table>";
echo "<pre>";
print_r($getBalanceResponse);
echo "</pre>";
}
require_once '../Response.php';