Surcharges were prohibited by merchant agreements until the big card networks settled a class action lawsuit. As of 2013 anybody can add a surcharge, provided they follow the card network rules. State laws prohibiting surcharges were struck down by the US Supreme Court in 2017.