Hi Jennifer,
You may want to post the code from the entire page (WAUE_checkout_success_1.php). While line 340 is where the problem is creating the show stopper, my guess is that the issue is with a variable coming before line 340 that makes up that variable.
Regards,
Brian