Stores and restaurants in several states would be required to do something pretty basic if certain lawmakers have their way: accept their customers’ cash.

The legislation comes amid a worldwide move toward cashless payments using cards or mobile devices, which supporters say are safer, quicker and more convenient. But critics say an outright ban on cash discriminates against those without credit or bank accounts, and raises concerns about privacy and data security.

The New Jersey Legislature and the Philadelphia City Council have passed measures this year that would ban cashless stores. New York City, Washington, San Francisco and Chicago are weighing similar bills.

“It’s important to recognize the fact that not everyone has access to banks or lines of credit,” said State Senator Nellie Pou, one of the sponsors of the bill in New Jersey.