src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Samples/SimpleCheckoutExample.php
public function captureOrderAmount($captureAmount, $amazonAuthorizationId)
    {
        $captureRequest = new OffAmazonPaymentsService_Model_CaptureRequest();
        $captureRequest->setSellerId($this->_sellerId);
        $captureRequest->setAmazonAuthorizationId($amazonAuthorizationId);
        $captureRequest->setCaptureReferenceId($this->_captureReferenceId);
        $captureRequest->setCaptureAmount(new OffAmazonPaymentsService_Model_Price());
        $captureRequest->getCaptureAmount()->setAmount($captureAmount);
        $captureRequest->getCaptureAmount()->setCurrencyCode($this->_service->getMerchantValues()->getCurrency());
         
        return $this->_service->capture($captureRequest);
    }
public function captureOrderAmount($captureAmount, $amazonAuthorizationId)
    {
        $captureRequest = new OffAmazonPaymentsService_Model_CaptureRequest();
        $captureRequest->setSellerId($this->_sellerId);
        $captureRequest->setAmazonAuthorizationId($amazonAuthorizationId);
        $captureRequest->setCaptureReferenceId($this->_captureReferenceId);
        $captureRequest->setCaptureAmount(new OffAmazonPaymentsService_Model_Price());
        $captureRequest->getCaptureAmount()->setAmount($captureAmount);
        $captureRequest->getCaptureAmount()->setCurrencyCode($this->_service->getMerchantValues()->getCurrency());
         
        return $this->_service->capture($captureRequest);
    }
public function captureOrderAmount ( $ captureAmount , $ amazonAuthorizationId ) { $ captureRequest = new OffAmazonPaymentsService_Model_CaptureRequest ( ) ; $ captureRequest -> setSellerId ( $ this -> _sellerId ) ; $ captureRequest -> setAmazonAuthorizationId ( $ amazonAuthorizationId ) ; $ captureRequest -> setCaptureReferenceId ( $ this -> _captureReferenceId ) ; $ captureRequest -> setCaptureAmount ( new OffAmazonPaymentsService_Model_Price ( ) ) ; $ captureRequest -> getCaptureAmount ( ) -> setAmount ( $ captureAmount ) ; $ captureRequest -> getCaptureAmount ( ) -> setCurrencyCode ( $ this -> _service -> getMerchantValues ( ) -> getCurrency ( ) ) ; return $ this -> _service -> capture ( $ captureRequest ) ; }
Perform the capture call for the order

@param float  $captureAmount         amount to capture from the buyer
@param string $amazonAuthorizationId auth id to perform the capture on

@return OffAmazonPaymentsService_Model_CaptureResponse service response
Perform the capture call for the order