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