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