/**
  * Service Call: DoExpressCheckoutPayment
  * @param DoExpressCheckoutPaymentReq $doExpressCheckoutPaymentReq
  * @param mixed $apiCredential - Optional API credential - can either be
  * 		a username configured in sdk_config.ini or a ICredential object
  *      created dynamically 		
  * @return DoExpressCheckoutPaymentResponseType
  * @throws APIException
  */
 public function DoExpressCheckoutPayment($doExpressCheckoutPaymentReq, $apiCredential = NULL)
 {
     $this->setStandardParams($doExpressCheckoutPaymentReq->DoExpressCheckoutPaymentRequest);
     $ret = new DoExpressCheckoutPaymentResponseType();
     $resp = $this->call('PayPalAPIAA', 'DoExpressCheckoutPayment', $doExpressCheckoutPaymentReq, $apiCredential);
     $ret->init(PPUtils::xmlToArray($resp));
     return $ret;
 }
 /**
  * Service Call: DoExpressCheckoutPayment
  *
  * @param DoExpressCheckoutPaymentReq $doExpressCheckoutPaymentReq
  *
  * @return DoExpressCheckoutPaymentResponseType
  * @throws APIException
  */
 public function DoExpressCheckoutPayment($doExpressCheckoutPaymentReq, $apiUsername = null)
 {
     $this->setStandardParams($doExpressCheckoutPaymentReq->DoExpressCheckoutPaymentRequest);
     $ret = new DoExpressCheckoutPaymentResponseType();
     $resp = $this->call("DoExpressCheckoutPayment", $doExpressCheckoutPaymentReq, $apiUsername);
     $ret->init(PPUtils::xmlToArray($resp));
     return $ret;
 }
 function DoUATPExpressCheckoutPaymentResponseType()
 {
     parent::DoExpressCheckoutPaymentResponseType();
     $this->_namespace = 'urn:ebay:api:PayPalAPI';
     $this->_elements = array_merge($this->_elements, array('UATPDetails' => array('required' => true, 'type' => 'UATPDetailsType', 'namespace' => 'urn:ebay:apis:eBLBaseComponents')));
 }
 public function init($arr = null)
 {
     if ($arr != null) {
         parent::init($arr);
         foreach ($arr as $arry) {
             if (is_array($arry["children"]) && $arry["children"] != null) {
                 if ($arry["name"] == 'uatpdetails') {
                     $this->UATPDetails = new UATPDetailsType();
                     $this->UATPDetails->init($arry["children"]);
                 }
             }
         }
     }
 }
 /**
  * Service Call: DoExpressCheckoutPayment
  * @param DoExpressCheckoutPaymentReq $doExpressCheckoutPaymentReq
  * @param mixed $apiCredential - Optional API credential - can either be
  * 		a username configured in sdk_config.ini or a ICredential object
  *      created dynamically 		
  * @return DoExpressCheckoutPaymentResponseType
  * @throws APIException
  */
 public function DoExpressCheckoutPayment($doExpressCheckoutPaymentReq, $apiCredential = NULL)
 {
     $this->setStandardParams($doExpressCheckoutPaymentReq->DoExpressCheckoutPaymentRequest);
     $apiContext = new PPApiContext($this->config);
     $handlers = array(new PPMerchantServiceHandler($apiCredential, self::$SDK_NAME, self::$SDK_VERSION));
     $ret = new DoExpressCheckoutPaymentResponseType();
     $resp = $this->call('PayPalAPIAA', 'DoExpressCheckoutPayment', $doExpressCheckoutPaymentReq, $apiContext, $handlers);
     $ret->init(PPUtils::xmlToArray($resp));
     return $ret;
 }