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