public function DoDirectPayment($doDirectPaymentReq, $apiCredential = null)
{
$apiContext = new PPApiContext($this->config);
$handlers = array(new PPMerchantServiceHandler($apiCredential, self::$SDK_NAME, self::$SDK_VERSION));
$this->setStandardParams($doDirectPaymentReq->DoDirectPaymentRequest);
$ret = new DoDirectPaymentResponseType();
$resp = $this->call('PayPalAPIAA', 'DoDirectPayment', $doDirectPaymentReq, $apiContext, $handlers);
$ret->init(PPUtils::xmlToArray($resp));
return $ret;
}