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