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');
    }