When the consumerName in the Mollie payment is completely different from the name of the user in Cyclos, we should send an e-mail to the admin mailbox to let them investigate manually if this indicates dark matters. Similarly to the e-mail we send now when the two IBANs are different.
We can not simply compare the two names, because someone might use a slightly different name in Cyclos than in their bank account (for example 'Piet Puk' versus 'Mr. P.J. Puk'). Maybe we can use the 'Levenshtein distance' between the two names to decide if they are close enough or not.
See also: https://stackoverflow.com/questions/17456270/groovy-string-comparison
We might compare the Mollie name with several Cyclos name fields: name, username, contactpersoon bedrijf.
When the consumerName in the Mollie payment is completely different from the name of the user in Cyclos, we should send an e-mail to the admin mailbox to let them investigate manually if this indicates dark matters. Similarly to the e-mail we send now when the two IBANs are different.
We can not simply compare the two names, because someone might use a slightly different name in Cyclos than in their bank account (for example 'Piet Puk' versus 'Mr. P.J. Puk'). Maybe we can use the 'Levenshtein distance' between the two names to decide if they are close enough or not. See also: https://stackoverflow.com/questions/17456270/groovy-string-comparison
We might compare the Mollie name with several Cyclos name fields: name, username, contactpersoon bedrijf.