Peel and mash the plantains well. Put into a bowl and add enough of the flour to bind. Add the onion, palm oil, salt and pepper to taste. Mix well and leave to stand for 20 minutes. Fry in spoonfuls in a little hot oil until golden brown. Drain on kitchen paper and serve hot.