public function getGateways()
    {
        $gateways = array();

        foreach ($this->getGatewayNamespaces() as $namespace) {

            if (strpos($namespace, 'Omnipay') !== 0) {
                continue;
            }

            $matches = array();
            preg_match('/Omnipay\\\(.+?)\\\/', $namespace, $matches);

            if (isset($matches[1])) {
                $gateways[] = $matches[1];
            }
        }

        return $gateways;
    }