/** * Service Call: EnterBoarding * @param EnterBoardingReq $enterBoardingReq * @param mixed $apiCredential - Optional API credential - can either be * a username configured in sdk_config.ini or a ICredential object * created dynamically * @return PayPalAPI\EnterBoardingResponseType * @throws APIException */ public function EnterBoarding($enterBoardingReq, $apiCredential = NULL) { $apiContext = new PPApiContext($this->config); $handlers = array(new PPMerchantServiceHandler($apiCredential, self::$SDK_NAME, self::$SDK_VERSION)); $this->setStandardParams($enterBoardingReq->EnterBoardingRequest); $ret = new EnterBoardingResponseType(); $resp = $this->call('PayPalAPI', 'EnterBoarding', $enterBoardingReq, $apiContext, $handlers); $ret->init(PPUtils::xmlToArray($resp)); return $ret; }
/** * Service Call: EnterBoarding * @param EnterBoardingReq $enterBoardingReq * @param mixed $apiCredential - Optional API credential - can either be * a username configured in sdk_config.ini or a ICredential object * created dynamically * @return PayPalAPI\EnterBoardingResponseType * @throws APIException */ public function EnterBoarding($enterBoardingReq, $apiCredential = NULL) { $this->setStandardParams($enterBoardingReq->EnterBoardingRequest); $ret = new EnterBoardingResponseType(); $resp = $this->call('PayPalAPI', 'EnterBoarding', $enterBoardingReq, $apiCredential); $ret->init(PPUtils::xmlToArray($resp)); return $ret; }