The retail giant has vowed to pay back customers who were overcharged for bags of citrus fruit or packages of meat.