Cook the peeled and quartered potatoes until they can be easily mashed. Drain the potatoes and let them steam out, then mash them with a potato masher, but they should still be hot.
Blanch the peas in boiling salted water for 5 minutes, then rinse in ice water and drain well. Mix the potatoes with the peas in a large bowl.
Heat 1 tablespoon of oil or ghee in a small pan and fry the onions, chilli, ginger and spices for 1 minute until they are fragrant. Add this mixture with the chickpea flour to the potatoes and fold in. Mix in the lemon juice and a little salt.
Use your hands to form a golf ball-sized kofta from the potato mixture, then flatten it a little.
Heat the remaining oil in a coated pan if possible and fry the potato kofta until golden brown on both sides. The cookies can be eaten warm or cold.