Factors influencing the method of payment choice when consumers purchase online or in retail stores?

Which factors influence the method of payment choice when consumers purchase online or in retail stores?