code cleanup

function get_checkout_methods and function get_checkout_list