Files
ms1inscription-v5/paypal_prod/api/RecurringPayments/BillOutstandingAmount.php
2026-05-13 09:43:32 -04:00

34 lines
1.1 KiB
PHP

<?php
require_once('../PPBootStrap.php');
/**
* Get required parameters from the web form for the request
*/
$logger = new PPLoggingManager('BillOutstandingAmount');
$billOutstandingAmtReqestDetail = new BillOutstandingAmountRequestDetailsType();
$billOutstandingAmtReqestDetail->Amount = new BasicAmountType($_REQUEST['currencyCode'], $_REQUEST['amt']);
$billOutstandingAmtReqestDetail->ProfileID = $_REQUEST['profileID'];
$billOutstandingAmtReqest = new BillOutstandingAmountRequestType();
$billOutstandingAmtReqest->BillOutstandingAmountRequestDetails = $billOutstandingAmtReqestDetail;
$billOutstandingAmtReq = new BillOutstandingAmountReq();
$billOutstandingAmtReq->BillOutstandingAmountRequest = $billOutstandingAmtReqest;
$paypalService = new PayPalAPIInterfaceServiceService();
try {
/* wrap API method calls on the service object with a try catch */
$billOutstandingAmtResponse = $paypalService->BillOutstandingAmount($billOutstandingAmtReq);
} catch (Exception $ex) {
include_once("../Error.php");
exit;
}
if(isset($billOutstandingAmtResponse)) {
echo "<pre>";
print_r($billOutstandingAmtResponse);
echo "</pre>";
}
require_once '../Response.php';