PayPal\Service\PayPalAPIInterfaceServiceService::DoUATPAuthorization PHP Method

DoUATPAuthorization() public method

Service Call: DoUATPAuthorization
public DoUATPAuthorization ( DoUATPAuthorizationReq $doUATPAuthorizationReq, mixed $apiCredential = null ) : DoUATPAuthorizationResponseType
$doUATPAuthorizationReq PayPal\PayPalAPI\DoUATPAuthorizationReq
$apiCredential mixed - Optional API credential - can either be a username configured in sdk_config.ini or a ICredential object created dynamically
return PayPal\PayPalAPI\DoUATPAuthorizationResponseType
    public function DoUATPAuthorization($doUATPAuthorizationReq, $apiCredential = null)
    {
        $apiContext = new PPApiContext($this->config);
        $handlers = array(new PPMerchantServiceHandler($apiCredential, self::$SDK_NAME, self::$SDK_VERSION));
        $this->setStandardParams($doUATPAuthorizationReq->DoUATPAuthorizationRequest);
        $ret = new DoUATPAuthorizationResponseType();
        $resp = $this->call('PayPalAPIAA', 'DoUATPAuthorization', $doUATPAuthorizationReq, $apiContext, $handlers);
        $ret->init(PPUtils::xmlToArray($resp));
        return $ret;
    }