public function doCapture($authorization_id, $amount, $complete = 'Complete', $data = [])
    {
        $this->setRequestData(
            array_merge($data, [
                'AUTHORIZATIONID' => $authorization_id,
                'AMT'             => $amount,
                'COMPLETETYPE'    => $complete,
                'CURRENCYCODE'    => $this->currency,
            ])
        );

        return $this->doPayPalRequest('DoCapture');
    }
public function doCapture($authorization_id, $amount, $complete = 'Complete', $data = [])
    {
        $this->setRequestData(
            array_merge($data, [
                'AUTHORIZATIONID' => $authorization_id,
                'AMT'             => $amount,
                'COMPLETETYPE'    => $complete,
                'CURRENCYCODE'    => $this->currency,
            ])
        );

        return $this->doPayPalRequest('DoCapture');
    }
public function doCapture ( $ authorization_id , $ amount , $ complete = 'Complete' , $ data = [ ] ) { $ this -> setRequestData ( array_merge ( $ data , [ 'AUTHORIZATIONID' => $ authorization_id , 'AMT' => $ amount , 'COMPLETETYPE' => $ complete , 'CURRENCYCODE' => $ this -> currency , ] ) ) ; return $ this -> doPayPalRequest ( 'DoCapture' ) ; }
Perform a DoCapture API call on PayPal.

@param string $authorization_id Transaction ID
@param float  $amount           Amount to capture
@param string $complete         Indicates whether or not this is the last capture.
@param array  $data             Optional request fields

@throws \Exception

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