public function create($class, ClientInterface $httpClient = null, HttpRequestStack $httpRequestStack = null)
    {
        $class = Helper::getGatewayClassName($class);

        if (!class_exists($class)) {
            throw new RuntimeException("Class '$class' not found");
        }

        /** @var AbstractGateway $gateway */
        $gateway = new $class($httpClient, $httpRequestStack);
        $gatewayClassInfo = new ReflectionClass($gateway);
        $gateway->setPath(dirname($gatewayClassInfo->getFileName()));

        return $gateway;
    }