code: public function capture(Transaction $transaction)
      {
          $captureTransactionService = new CaptureTransactionService($this->store, $transaction, $this->logger);
          $captureTransactionService->platform($this->platform, $this->platformVersion);
  
          return $captureTransactionService->execute();
      }
docs: @param Transaction $transaction
  
  @return Transaction