How is the available payment methods list gathered for the frontend checkout page?

See also: