HP has agreed to pay $4 million to settle a class-action lawsuit.The lawsuit alleged that HP misled customers with deceptive pricing on its website.HP was accused of displaying inflated original prices to create the illusion of significant discounts.Under the settlement, HP will establish a $4 million fund to compensate affected customers.