They can do this in almost all of the US, although a few states have limitations.
Here's a good list of states and what their restrictions are on charging more for credit cards: https://www.usatoday.com/money/blueprint/business/credit-car...