public function doAuthorization($authorization_id, $amount, $data = [])
    {
        $this->setRequestData(
            array_merge($data, [
                'AUTHORIZATIONID' => $authorization_id,
                'AMT'             => $amount,
            ])
        );

        return $this->doPayPalRequest('DoAuthorization');
    }
public function doAuthorization($authorization_id, $amount, $data = [])
    {
        $this->setRequestData(
            array_merge($data, [
                'AUTHORIZATIONID' => $authorization_id,
                'AMT'             => $amount,
            ])
        );

        return $this->doPayPalRequest('DoAuthorization');
    }
public function doAuthorization ( $ authorization_id , $ amount , $ data = [ ] ) { $ this -> setRequestData ( array_merge ( $ data , [ 'AUTHORIZATIONID' => $ authorization_id , 'AMT' => $ amount , ] ) ) ; return $ this -> doPayPalRequest ( 'DoAuthorization' ) ; }
Perform a DoAuthorization API call on PayPal.

@param string $authorization_id Transaction ID
@param float  $amount           Amount to capture
@param array  $data             Optional request fields

@throws \Exception

@return array|\Psr\Http\Message\StreamInterface
Perform a DoAuthorization API call on PayPal .