how are they going to know that the name matches the credit card?
idk, how do you compare strings?
Assuming you're being genuine here, OCR on the passport photo plus a string comparison on the card details provided. This is why the criteria for ID scans is so strict, and also why these verifications can take "up to 24 hours".