If it's confirmed that the ectopic pregnancy is in one of your fallopian tubes and it's still early on in the pregnancy, your doctor may recommend that you have an injection of a medicine called methotrexate. This disrupts the pregnancy and causes it to end. You may need to have more than one dose. However, the medicine isn't always effective at preventing your fallopian tube from rupturing. If it does, you will need to have surgery.
Attribution: BUPA