This provision of the Dodd-Frank Act does not cover debit cards, and I believe merchant agreements still prohibit minimums for debit cards. This prohibition is widely violated. I have no idea whether this prohibition is officially applicable to debit cards when they are processed as credit cards (which usually means no PIN for most US cards) - I’ve heard people say it’s not - but it definitely covers debit cards when they are processed as debit cards (which again for most US cards is always the case if a PIN is input).
As for NY’s current rules on price differences for credit cards vs cash and debit cards vs cash and the required disclosures, those are a bit complex, so I’ll just link an official explanation here:
https://dos.ny.gov/news/consumer-alert-nys-division-consumer...
But the TL;DR is, yes different pricing is legal if worded and disclosed correctly. To nobody’s surprise, illegal implementations remain common as well.