I have a db table with fields first_name and last_name. I need to check if the credit card holder name given by Asiapay is part of my traveling party (records in my db table). Issue is that credit card holder given is full name (single field)
So far my options are:
- using fulltext search
- using https://github.com/atomescrochus/laravel-string-similarities but not sure what percentage to consider correct
I need some suggestions for other libraries and strategies regarding string comparison
PS: I just cannot compare concatenated first_name and last_name vs holder_name since there are cases that names in traveling documents are different than the ones in a person's credit card (eg. "John Foo Doe" in passport vs "John Doe" in credit card)
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire