Codeine is a popular medicine that is used to treat mild to moderate pain. It is also used to treat coughs and diarrhea. While it is a powerful medicine, it is also available as a generic medication. This means that anyone can buy generic codeine online and have it delivered right to their door.