AJAX Payment method changes fixed

also added ajax method to cart.php to change payment method before
checkout.