public function captureSale($paymentId, $amount = null, $serviceTaxAmount = null)
    {
        $updateSaleRequest = new UpdateSaleRequest('capture', $this->merchant, $this->environment);

        $updateSaleRequest->setAmount($amount);
        $updateSaleRequest->setServiceTaxAmount($serviceTaxAmount);

        return $updateSaleRequest->execute($paymentId);
    }
public function captureSale($paymentId, $amount = null, $serviceTaxAmount = null)
    {
        $updateSaleRequest = new UpdateSaleRequest('capture', $this->merchant, $this->environment);

        $updateSaleRequest->setAmount($amount);
        $updateSaleRequest->setServiceTaxAmount($serviceTaxAmount);

        return $updateSaleRequest->execute($paymentId);
    }
public function captureSale ( $ paymentId , $ amount = null , $ serviceTaxAmount = null ) { $ updateSaleRequest = new UpdateSaleRequest ( 'capture' , $ this -> merchant , $ this -> environment ) ; $ updateSaleRequest -> setAmount ( $ amount ) ; $ updateSaleRequest -> setServiceTaxAmount ( $ serviceTaxAmount ) ; return $ updateSaleRequest -> execute ( $ paymentId ) ; }
Capture a Sale on Cielo by paymentId and specifying the amount and the
serviceTaxAmount

@param string  $paymentId
The paymentId to be captured
@param integer $amount
Amount of the authorization to be captured
@param integer $serviceTaxAmount
Amount of the authorization should be destined for the service
charge

@return \Cielo\API30\Ecommerce\Payment The captured Payment.


@throws \Cielo\API30\Ecommerce\Request\CieloRequestException if anything gets wrong.

@see <a href=
"https://developercielo.github.io/Webservice-3.0/english.html#error-codes">Error
Codes</a>
Capture a Sale on Cielo by paymentId and specifying the amount and the serviceTaxAmount