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