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