src/Resource/Payment.php
public function capture()
    {
        $path = sprintf('/%s/%s/%s/%s', MoipResource::VERSION, self::PATH, $this->getId(), 'capture');
        if ($this->isMultipayment($this->getId())) {
            $path = sprintf('/%s/%s/%s/%s', MoipResource::VERSION, self::MULTI_PAYMENTS_PATH, $this->getId(), 'capture');
        }

        $response = $this->httpRequest($path, Requests::POST, $this);

        return $this->populate($response);
    }
public function capture()
    {
        $path = sprintf('/%s/%s/%s/%s', MoipResource::VERSION, self::PATH, $this->getId(), 'capture');
        if ($this->isMultipayment($this->getId())) {
            $path = sprintf('/%s/%s/%s/%s', MoipResource::VERSION, self::MULTI_PAYMENTS_PATH, $this->getId(), 'capture');
        }

        $response = $this->httpRequest($path, Requests::POST, $this);

        return $this->populate($response);
    }
public function capture ( ) { $ path = sprintf ( '/%s/%s/%s/%s' , MoipResource :: VERSION , self :: PATH , $ this -> getId ( ) , 'capture' ) ; if ( $ this -> isMultipayment ( $ this -> getId ( ) ) ) { $ path = sprintf ( '/%s/%s/%s/%s' , MoipResource :: VERSION , self :: MULTI_PAYMENTS_PATH , $ this -> getId ( ) , 'capture' ) ; } $ response = $ this -> httpRequest ( $ path , Requests :: POST , $ this ) ; return $ this -> populate ( $ response ) ; }
Capture a pre-authorized amount on a credit card payment.

@throws \Exception

@return Payment
Capture a pre - authorized amount on a credit card payment .