Is surrogacy against church teachings?

I am a bit confused on the topic of surrogacy… Im not sure if its the same as “test tube” babies or if its ok since its actually the mother and father who cant conceive giving their sperm and egg to someone who can… Could someone clear this up for me and tell me the church’s view on this topic?
Thank you!

The following links should assist you in better understanding the Catholic Church’s teaching on surrogacy and artificial insemination. If you have any further questions or concerns that are not answered by these links, please contact Catholic Answers directly.

**Recommended Reading:
**

Is surrogate motherhood a sin?
Fertility Question–what’s licit?
Can a woman donate her eggs?
In doing IVF, how grave a sin have we committed?
Instruction on Respect for Human Life in its Origin and on the Dignity of Procreation

DISCLAIMER: The views and opinions expressed in these forums do not necessarily reflect those of Catholic Answers. For official apologetics resources please visit www.catholic.com.