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