Is the order being stored in the database?
Is the receipt email being sent?
try changing the trigger for the local checkout behavior:
if (($_SERVER["REQUEST_METHOD"] == "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST)) {
to:
if ((isset($_POST["Submit_order_x"]))) {