public function createCapture(array $data)
    {
        $capture = new Capture($this->connector, $this->getLocation());

        $capture->create($data);

        $this['captures'][] = $capture;

        return $capture;
    }
public function createCapture(array $data)
    {
        $capture = new Capture($this->connector, $this->getLocation());

        $capture->create($data);

        $this['captures'][] = $capture;

        return $capture;
    }
public function createCapture ( array $ data ) { $ capture = new Capture ( $ this -> connector , $ this -> getLocation ( ) ) ; $ capture -> create ( $ data ) ; $ this [ 'captures' ] [ ] = $ capture ; return $ capture ; }
Capture all or part of an order.

@param array $data Capture data

@see Capture::create() For more information on how to create a capture

@throws ConnectorException When the API replies with an error response
@throws RequestException   When an error is encountered
@throws \RuntimeException  If the location header is missing
@throws \RuntimeException  If the API replies with an unexpected response
@throws \LogicException    When Guzzle cannot populate the response

@return Capture
Capture all or part of an order .