コード例 #1
0
 /**
  * Service Call: DoUATPAuthorization
  *
  * @param DoUATPAuthorizationReq $doUATPAuthorizationReq
  *
  * @return DoUATPAuthorizationResponseType
  * @throws APIException
  */
 public function DoUATPAuthorization($doUATPAuthorizationReq, $apiUsername = null)
 {
     $this->setStandardParams($doUATPAuthorizationReq->DoUATPAuthorizationRequest);
     $ret = new DoUATPAuthorizationResponseType();
     $resp = $this->call("DoUATPAuthorization", $doUATPAuthorizationReq, $apiUsername);
     $ret->init(PPUtils::xmlToArray($resp));
     return $ret;
 }
 /**
  * Service Call: DoUATPAuthorization
  * @param DoUATPAuthorizationReq $doUATPAuthorizationReq
  * @param mixed $apiCredential - Optional API credential - can either be
  * 		a username configured in sdk_config.ini or a ICredential object
  *      created dynamically 		
  * @return DoUATPAuthorizationResponseType
  * @throws APIException
  */
 public function DoUATPAuthorization($doUATPAuthorizationReq, $apiCredential = NULL)
 {
     $this->setStandardParams($doUATPAuthorizationReq->DoUATPAuthorizationRequest);
     $ret = new DoUATPAuthorizationResponseType();
     $resp = $this->call('PayPalAPIAA', 'DoUATPAuthorization', $doUATPAuthorizationReq, $apiCredential);
     $ret->init(PPUtils::xmlToArray($resp));
     return $ret;
 }
コード例 #3
0
 /**
  * Service Call: DoUATPAuthorization
  * @param DoUATPAuthorizationReq $doUATPAuthorizationReq
  * @param mixed $apiCredential - Optional API credential - can either be
  * 		a username configured in sdk_config.ini or a ICredential object
  *      created dynamically 		
  * @return DoUATPAuthorizationResponseType
  * @throws APIException
  */
 public function DoUATPAuthorization($doUATPAuthorizationReq, $apiCredential = NULL)
 {
     $this->setStandardParams($doUATPAuthorizationReq->DoUATPAuthorizationRequest);
     $apiContext = new PPApiContext($this->config);
     $handlers = array(new PPMerchantServiceHandler($apiCredential, self::$SDK_NAME, self::$SDK_VERSION));
     $ret = new DoUATPAuthorizationResponseType();
     $resp = $this->call('PayPalAPIAA', 'DoUATPAuthorization', $doUATPAuthorizationReq, $apiContext, $handlers);
     $ret->init(PPUtils::xmlToArray($resp));
     return $ret;
 }