Experimental project
This is a sandbox project, which contains experimental code for developer use only.
Synopsis
This project provides validation to prevent webform submissions containing credit card numbers from being entered into your database when you don't want.
- Checks number, textfield, and textarea components.
- Removes all non-numbers and Luhn checks every remaining 15 or 16 digit sequence, throwing an error if any sequences pass the Luhn check.
- Use with Clientside Validation to prevent user from attempting to submit.
Requirements
Webform Validation (https://www.drupal.org/project/webform_validation) is required to make this module work. This allows the user to submit the form, and before the submission is stored in the database, it validates that the appropriate components do not contain any sequences that pass a Luhn check. (Good!)
Recommended modules
Clientside Validation (https://www.drupal.org/project/clientside_validation) is recommended, as this runs a clientside (javascript) version of the check. If a component contains a credit card number, the user will see an error and will not be able to click submit (Better!).
Known problems
the module uses an abbreviated name, please use this command to clone the repo:
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/jannis/2486167.git webform_validation_no_ccs
References
Luhn Check code (https://gist.github.com/DiegoSalazar/4075533 , https://gist.github.com/troelskn/1287893).
Project information
- Module categories: Content Editing Experience, E-commerce, Security
- Created by jannis on , updated