In a pan heat oil and fry together sliced onion, green chillies, ginger, garlic (if using). When onion are slightly brown on edges add sliced tomatoes.
Cook this masala for 5-6 minutes till tomatoes are soft. you can cover it with a lid and slow down the heat to low.
When it is done, allow onion tomatoes to cool down and grind to smooth paste.
Next add a tablespoon oil in a pan and add cumin and smooth masala paste. Cook this paste and add spices and again fry it for few minutes.
When masala paste leaves the oil add peas and ¼ cup of water. Cook for few minutes till peas are softened.
Next add paneer cubes and coat them well with semi dry masala and peas gravy. Add about 200ml water and cook paneer for 3-4 minutes.
Finally add some garam masala and crushed kasuri methi , mix well and enjoy it with jeera rice or Naan or any other flatbread of your choice.