Page MenuHomePhabricator

Don't accept an employer field that's just numbers
Closed, ResolvedPublic2 Estimated Story Points

Description

It's down near the CC field on forms where it appears. Make sure people aren't putting their card numbers in there by doing client-side validation and rejecting anything that's just numbers, spaces and hyphens.

Event Timeline

Context: it's only happened a few times, but I think it'll get more frequent if we start using Adyen in the US. We've mostly only used the employer field with Ingenico, and that form disables the contact info before it shows the card field.

Dwisehaupt set the point value for this task to 2.May 9 2022, 8:40 PM

Change 791078 had a related patch set uploaded (by Damilare Adedoyin; author: Damilare Adedoyin):

[mediawiki/extensions/DonationInterface@master] WIP: Add validation to employers field

https://gerrit.wikimedia.org/r/791078

Change 791078 merged by jenkins-bot:

[mediawiki/extensions/DonationInterface@master] Add validation to employers field with test

https://gerrit.wikimedia.org/r/791078

XenoRyet set Final Story Points to 2.