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