Nearly all airlines will refuse to let you board their planes if you lack a required visa, and none of them will refund your fare since they consider it your mistake. Most will switch the booking to a later flight that you can take after getting a visa, but they may charge a fee for the change.