The last part isn't accurate. There is no law that requires this from non-licensees.
As a practical matter, I won't sell to someone I can't verify is a legal resident of my state and has a CCW permit, that way I know they're not a prohibited person -- but there's no law that requires me to do so.
Your correction is incorrect for at least some states. Texas requires a good faith belief (but not evidence per se) that the transferee is a legal resident of Texas (and they recommend but don't require asking for some kind of ID).
It sounds like you said what I said... Except that the discussion was specifically about federal law, there are various states that have additional laws.
As a practical matter, I won't sell to someone I can't verify is a legal resident of my state and has a CCW permit, that way I know they're not a prohibited person -- but there's no law that requires me to do so.