public function gateway($name = null)
    {
        $name = $name ?: $this->getGateway();

        if ( ! isset($this->gateways[$name]))
        {
            $this->gateways[$name] = $this->resolve($name);
        }

        return $this->gateways[$name];
    }
public function gateway($name = null)
    {
        $name = $name ?: $this->getGateway();

        if ( ! isset($this->gateways[$name]))
        {
            $this->gateways[$name] = $this->resolve($name);
        }

        return $this->gateways[$name];
    }
public function gateway ( $ name = null ) { $ name = $ name ? : $ this -> getGateway ( ) ; if ( ! isset ( $ this -> gateways [ $ name ] ) ) { $ this -> gateways [ $ name ] = $ this -> resolve ( $ name ) ; } return $ this -> gateways [ $ name ] ; }
Get an instance of the specified gateway
@param  index of config array to use
@return Omnipay\Common\AbstractGateway
Get an instance of the specified gateway