You need to get her pain medication!!! Go back to the doctor and ask for pain medication!!!
My dog was in pain for two days after her spay surgery, and she survived by medication. You did the right thing. If a female dog is not spayed there is a 85% chance she will get uterious cancer between 5-10 years of age. It is good for their health.