When checking out, redirected to front page and not payment page
It looks like the order ID isn't being saved for the session.  Add this:

$_SESSION['commerce_cart_orders'][] = $order-&gt;order_id;


Just make sure you do this before you save the final version of your order.