A six-year legal battle over merchant credit card surcharges in New York came to an end this month, with the upshot being that the state’s retailers can impose fees for credit card transactions as long as they disclose such charges as part of the total cost of a purchase.