If you take the UnionPay line and set a password, you will recognize the password but not the person.
Of course, in some places, swiping the card depends on whether the passport is in person, such as duty-free shops and airports.