PATH:
home
/
letacommog
/
letaweb
/
admin
/
classes
/
payments
/
paypal-merchant-sdk
/
samples
/
Onboarding
<?php require_once '../PPBootStrap.php'; $bankAccount = new BankAccountDetailsType(); $bankAccount->AccountNumber = $_REQUEST['accNum']; $bankAccount->Name = $_REQUEST['accName']; $bankAccount->Type = $_REQUEST['accType']; $bizAddress = new AddressType(); $bizAddress->Name = $_REQUEST['name']; $bizAddress->Street1 = $_REQUEST['street']; $bizAddress->CityName = $_REQUEST['city']; $bizAddress->StateOrProvince = $_REQUEST['state']; $bizAddress->PostalCode = $_REQUEST['postalCode']; $bizAddress->Country = $_REQUEST['countryCode']; $businessInfo = new BusinessInfoType(); $businessInfo->Name = $_REQUEST['businessName']; $businessInfo->Type = $_REQUEST['businessType']; $businessInfo->Category = $_REQUEST['businessCategory']; $businessInfo->AverageMonthlyVolume = $_REQUEST['averageMonthlyVolume']; $businessInfo->AveragePrice = $_REQUEST['averageTransPrice']; $businessInfo->RevenueFromOnlineSales = $_REQUEST['revenuePercentage']; $businessInfo->Address = $bizAddress; $ownerInfo = new BusinessOwnerInfoType(); $ownerInfo->SSN = $_REQUEST['SSN']; $ownerInfo->MobilePhone = $_REQUEST['ownerPhone']; $enterBoardingRequestDetails = new EnterBoardingRequestDetailsType(); $enterBoardingRequestDetails->ProductList = $_REQUEST['prodList']; $enterBoardingRequestDetails->BankAccount = $bankAccount; $enterBoardingRequestDetails->BusinessInfo = $businessInfo; $enterBoardingRequestDetails->MarketingCategory = $_REQUEST['marketingCategory']; $enterBoardingRequestDetails->OwnerInfo = $ownerInfo; $enterBoardingRequestDetails->ProgramCode = $_REQUEST['programCode']; $enterBoardingRequest = new EnterBoardingRequestType(); $enterBoardingRequest->EnterBoardingRequestDetails = $enterBoardingRequestDetails; $enterBoardingReq = new EnterBoardingReq(); $enterBoardingReq->EnterBoardingRequest = $enterBoardingRequest; /* Configuration::getAcctAndConfig() returns array that contains credential and config parameters */ $paypalService = new PayPalAPIInterfaceServiceService(Configuration::getAcctAndConfig()); try { /* wrap API method calls on the service object with a try catch */ $enterBoardingResponse = $paypalService->EnterBoarding($enterBoardingReq); } catch (Exception $ex) { include_once '../Error.php'; exit; } if (isset($enterBoardingResponse)) { echo '<pre>'; print_r($enterBoardingResponse); echo '</pre>'; } require_once '../Response.php';
[+]
..
[-] EnterBoarding.html.php
[edit]
[-] GetBoardingDetails.html.php
[edit]
[-] EnterBoarding.php
[edit]
[-] GetBoardingDetails.php
[edit]