code: private function findPaymentTokens(PaymentInterface $payment)
      {
          $identity = $this->getPaymentIdentity($payment);
  
          /** @var TokenInterface[] $tokens */
          $tokens = $this->payum->getTokenStorage()->findBy([
              'details' => $identity,
          ]);
  
          return $tokens;
      }
docs: Find the given payment's security tokens.
  
  @param PaymentInterface $payment
  
  @return TokenInterface[]