public function capture(
        $orderId,
        $amount,
        HpsOrderData $orderData = null
    ) {
        $payload = array(
            'Amount' => $this->formatAmount($amount),
            'CurrencyCode' => $this->currencyStringToNumeric(
                $orderData->currencyCode
            ),
            'OrderId' => $orderId,
            'OrderNumber' => $orderData->orderNumber,
            'TransactionType' => 'WT',
        );
        return $this->submitTransaction($payload, 'cmpi_capture');
    }
public function capture(
        $orderId,
        $amount,
        HpsOrderData $orderData = null
    ) {
        $payload = array(
            'Amount' => $this->formatAmount($amount),
            'CurrencyCode' => $this->currencyStringToNumeric(
                $orderData->currencyCode
            ),
            'OrderId' => $orderId,
            'OrderNumber' => $orderData->orderNumber,
            'TransactionType' => 'WT',
        );
        return $this->submitTransaction($payload, 'cmpi_capture');
    }
public function capture ( $ orderId , $ amount , HpsOrderData $ orderData = null ) { $ payload = array ( 'Amount' => $ this -> formatAmount ( $ amount ) , 'CurrencyCode' => $ this -> currencyStringToNumeric ( $ orderData -> currencyCode ) , 'OrderId' => $ orderId , 'OrderNumber' => $ orderData -> orderNumber , 'TransactionType' => 'WT' , ) ; return $ this -> submitTransaction ( $ payload , 'cmpi_capture' ) ; }
Responsible for settling funds from previous authorization transaction.
Payment for the complete or partial amount of the authorization is available.
Multiple captures can be processed against a single Authorization up to 100%
of the authorization.

@param string       $orderId   order id from Cardinal
@param mixed        $amount    amount to be authorized
@param HpsOrderData $orderData Cardinal/MasterPass specific data

@return object
Responsible for settling funds from previous authorization transaction . Payment for the complete or partial amount of the authorization is available . Multiple captures can be processed against a single Authorization up to 100% of the authorization .