src/Payum/Core/Bridge/Twig/TwigFactory.php
public static function guessViewsPath($gatewayFactoryOrRootClass)
    {
        if (false == class_exists($gatewayFactoryOrRootClass)) {
            return;
        }

        $rc = new \ReflectionClass($gatewayFactoryOrRootClass);

        return dirname($rc->getFileName()).'/Resources/views';
    }
public static function guessViewsPath($gatewayFactoryOrRootClass)
    {
        if (false == class_exists($gatewayFactoryOrRootClass)) {
            return;
        }

        $rc = new \ReflectionClass($gatewayFactoryOrRootClass);

        return dirname($rc->getFileName()).'/Resources/views';
    }
@param string $gatewayFactoryOrRootClass

@return string|null