The samosa is prepared with an all-purpose flour and stuffed with a filling, often a mixture of diced and cooked or mashed boiled potato (preferably diced), onions, green peas, lentils, ginger, spices and green chili. Samosas generally are deep-fried to a golden brown in vegetable oil.