public static function getGatewayShortName($className)
    {
        if (0 === strpos($className, '\\')) {
            $className = substr($className, 1);
        }

        if (0 === strpos($className, 'Omnipay\\')) {
            return trim(str_replace('\\', '_', substr($className, 8, -7)), '_');
        }

        return '\\'.$className;
    }
public static function getGatewayShortName($className)
    {
        if (0 === strpos($className, '\\')) {
            $className = substr($className, 1);
        }

        if (0 === strpos($className, 'Omnipay\\')) {
            return trim(str_replace('\\', '_', substr($className, 8, -7)), '_');
        }

        return '\\'.$className;
    }
public static function getGatewayShortName ( $ className ) { if ( 0 === strpos ( $ className , '\\' ) ) { $ className = substr ( $ className , 1 ) ; } if ( 0 === strpos ( $ className , 'Omnipay\\' ) ) { return trim ( str_replace ( '\\' , '_' , substr ( $ className , 8 , - 7 ) ) , '_' ) ; } return '\\' . $ className ; }
Resolve a gateway class to a short name.

The short name can be used with GatewayFactory as an alias of the gateway class,
to create new instances of a gateway.
Resolve a gateway class to a short name .