Visa for Vietnam

We will be in Luang Prabang before flying to Danang via Hanoi. Is it possible to get the Vietnam Visa in Luang Prabang ? We only have less than 2 Hrs to change flights in Hanoi, and was thinking that was cutting it a bit fine.
Thanks for any help.
Thanks for any help.