On a rooted phone, they can still fail attestation, apparently. That's why Magisk Hide (or whatever it's called) became a thing, to hide that the device is rooted. Google Pay also apparently needs Magisk Hide to function.
I don't trust my phone to store my payment details, so I don't care about Google Pay, and my bank's app works fine while rooted, so I don't have any personal experience with it, just what I've seen in every single root guide I've used in at least the last 4 years (if not longer; I don't remember how I rooted my previous phone.)