What do I do?!?! HELP!

Just found out I’m pregnant. I told the father and he said there was absolutely no way it could be his. He said it was probably John Doe’s baby. I know for a fact that the baby is not John Doe’s! John Doe and I have been friends for several years but that’s all it is, we have never even kissed. I’m kinda upset that the father doesn’t think that the baby is his. I’m scared and I just don’t know what to do in this situation.

ETA: My friend suggested not putting him on anything unless he pays for DNA testing after the child is born. She way saying if I put him down as the father he will have rights to the child and could fight for custody. 😵‍💫Now I’m even more confused and freaked out.😱