Retailer Wal-Mart has agreed to pay to Fendi a confidential sum to end a dispute over the sale of counterfeit Fendi handbags in its Sam's Club stores.