Is it permissible for a woman who broke fasting due to a delivery to pay a ransom?
She should make up for the missed fasting days once she becomes ritually pure, but it is impermissible for her to pay a ransom while being able to fast.
What is the ruling on the cessation of blood after (40) days from delivery, but later continued sporadically during two days of Ramadan?
Once postpartum bleeding (Nifas) ceases, and the woman is certain that it won`t reoccur, then she becomes ritually pure and so she is free to make Ghusl (purificatory bath), pray, and fast. If the bleeding reoccurs before fifteen days from its cessation, and before the end of (60) days after delivery, then the ruling on postpartum bleeding is effective, and her fasting and prayer are null and void, thus she must make up the fasting that she missed and not the prayer during those particular days.
Does bleeding from the body, such as from wounds, invalidate ablution?
Bleeding doesn't invalidate person's ablution. And Allah Knows Best.
How should a woman make up prayers that she missed two days from delivery?
All perfect praise be to Allah,The Lord of The Worlds It is prohibited to delay prayer beyond its prescribed fixed time, therefore, the woman in question is obliged to make up missed prayers after delivery and confinement i.e. once she becomes ritually pure. And Allah Knows Best.