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