Payment/EventListener/PaymentDoneEventSubscriber.php
private function findPaymentTokens(PaymentInterface $payment)
    {
        $identity = $this->getPaymentIdentity($payment);

        /** @var TokenInterface[] $tokens */
        $tokens = $this->payum->getTokenStorage()->findBy([
            'details' => $identity,
        ]);

        return $tokens;
    }
private function findPaymentTokens(PaymentInterface $payment)
    {
        $identity = $this->getPaymentIdentity($payment);

        /** @var TokenInterface[] $tokens */
        $tokens = $this->payum->getTokenStorage()->findBy([
            'details' => $identity,
        ]);

        return $tokens;
    }
Find the given payment's security tokens.

@param PaymentInterface $payment

@return TokenInterface[]