Missed miscarriage

Sa

Found out I had a missed miscarriage at 9 weeks. Apparently the foetus stopped growing at 6 weeks, had three scans and they all showed there was no heartbeat. I took the pill last week and it hurt like hell. Still have some bleeding and mild cramps. I wonder if anyone went down the medication route and if so, how long did the bleeding and cramps last?