Move checkout functions into proper checkout/functions.php file
Mark payments as failed when returning to the Failed Transaction page. #2073