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

        return $this->doPayPalRequest('DoVoid');
    }
public function doVoid($authorization_id, $data = [])
    {
        $this->setRequestData(
            array_merge($data, [
                'AUTHORIZATIONID' => $authorization_id,
            ])
        );

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

@param string $authorization_id Transaction ID
@param array  $data             Optional request fields

@throws \Exception

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