NEW DELHI, India (CNN) -- A 3-month-old girl born to an Indian surrogate mother has flown to Japan to join her biological father after spending the first months of her life in legal limbo.

Baby Manjhi and her grandmother flew to Osaka, Japan, from the Indian capital, New Delhi, Saturday night, said family friend, Kamal Vijay Vargiya.

While some countries have banned surrogacy as a money-making venture, it has been legal in India since 2002.

Under the practice, infertile couples are matched with local women to carry babies for $12,000 to $30,000.

Baby Manjhi was conceived when a Japanese couple paid a clinic in India to have the husband's sperm and an anonymous donor's egg implanted in the womb of an Indian surrogate.

The plan worked. But a few months before Manjhi was born, the couple divorced. The intended Japanese mother decided she did not want the baby.

Manjhi was born on July 25. Her father, Ikufumi Yamada, and grandmother traveled from Japan to pick her up and take her to her new home. But Indian law stipulates that a mother must be present in order for a baby to receive a passport.

In this case, neither the birth mother nor the mother who had originally sought the child wanted to be involved.

Manjhi's father looked into a legal adoption, but Indian law does not allow single men to adopt.

The case garnered international headlines. Eventually, Manjhi was issued a birth certificate with just her father's name on it. And on Saturday, she left for Osaka to be reunited with him.

"This is for the first time in 28 years in Jaipur that somebody (in such a situation) has been issued travel documents by Indian authorities. And this became possible mainly because of media," said Sanjay Arya, the doctor who treated Manjhi at a Jaipur hospital.

-- CNN's Harmeet Shah Singh contributed to this report
When did the couple divorce? Surrogacy has been legal since when? How long has surrogacy been legal in India? Some countries have banned what? The Japanese mother decided what? Since when has surrogacy been legal in India? What was made legal in India in 2002? Who decided she did not want the baby? What happened before Manjhi was born?
a few months before Manjhi was born, 2002. since 2002. surrogacy as a money-making venture, she did not want the baby. 2002. surrogacy intended Japanese mother the couple divorced.
question: When did the couple divorce?, answer: a few months before Manjhi was born, | question: Surrogacy has been legal since when?, answer: 2002. | question: How long has surrogacy been legal in India?, answer: since 2002. | question: Some countries have banned what?, answer: surrogacy as a money-making venture, | question: The Japanese mother decided what?, answer: she did not want the baby. | question: Since when has surrogacy been legal in India?, answer: 2002. | question: What was made legal in India in 2002?, answer: surrogacy | question: Who decided she did not want the baby?, answer: intended Japanese mother | question: What happened before Manjhi was born?, answer: the couple divorced.