She thought that the bleeding that results from an abortion was nifaas so she broke her fast
Question

One day in Ramadan I went to the hospital to abort a pregnancy that had lasted less than three months. I took some medicine, and after the abortion I ate some food because I thought that it was permissible for me to eat. But after I went back home I researched on the internet and I found out that I should have fasted and prayed, because that bleeding was irregular bleeding. So I made up the day I had missed after Ramadan ended. Is what I did sufficient or what do I have to do?.
Praise be to Allah.Firstly: 
We have explained the ruling on deliberate abortion in the answer to question no. 42321, please refer to it. We have also explained the rulings on loss of the foetus at various stages of pregnancy in the answer to question no. 12475. 
Secondly: 
If a woman miscarries a foetus and it has no discernible human features, such as a head or limbs, then the bleeding that accompanies that is irregular bleeding, which does not stop her from praying and fasting. If there are discernible human features, then the bleeding is nifaas. The minimum period in which human features appear is eighty-one days, as is stated in the answer to question no. 37784. 
Thirdly: 
If you broke your fast because you thought that the bleeding was nifaas, then you found out that it was irregular bleeding and you made up the day you missed and the prayers, then you do not have to do anything else. If you have not made up the prayers of that day, then hasten to do so. 
May Allah help us and you to obey Him and seek His pleasure. 
And Allah knows best.