Amount = new BasicAmountType($currencyId, $_REQUEST['amt']); $MPPaymentDetails->Shipping = new BasicAmountType($currencyId, $_REQUEST['shipping']); $MPPaymentDetails->Handling = new BasicAmountType($currencyId, $_REQUEST['handling']); $MPPaymentDetails->Tax = new BasicAmountType($currencyId, $_REQUEST['tax']); $MPPaymentDetails->PaymentType = $_REQUEST['paymentCodeType']; $MPPaymentDetails->EmailSubject = $_REQUEST['mailSubject']; $MPPaymentDetails->ItemName = $_REQUEST['itemName']; $MPPaymentDetails->ItemNumber = $_REQUEST['itemNum']; $MPPaymentDetails->Memo = $_REQUEST['memo']; $MPPaymentDetails->MpID = $_REQUEST['billingAgreementID']; $billUserReqest = new BillUserRequestType(); $billUserReqest->MerchantPullPaymentDetails = $MPPaymentDetails; $billUserReq = new BillUserReq(); $billUserReq->BillUserRequest = $billUserReqest; $paypalService = new PayPalAPIInterfaceServiceService(); try { /* wrap API method calls on the service object with a try catch */ $billUserResponse = $paypalService->BillUser($billUserReq); } catch (Exception $ex) { include_once("../Error.php"); exit; } if(isset($billUserResponse)) { echo "
"; print_r($billUserResponse); echo ""; } require_once '../Response.php';