original_string: 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');
      }
code: 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');
      }
code_tokens: 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' ) ; }
docstring: 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
docstring_tokens: 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 .