Is there a cure for heartburn?

Antacids. Heartburn is caused by excess stomach acids. Neutralize the acid (alka-seltzer) or stop production of the acid (pepcid) and you will not have heartburn.