Update gateway.class.php