Use js to generate credit card information inputs

Created on 8 November 2018, over 6 years ago
Updated 25 April 2024, 12 months ago

Problem/Motivation

At some some point accept js implementation was using js to generate the credit card form inputs. Then in one the later code improvement it got turn to use drupal FAPI. This introduced a minor PCI compliance problem since a user with js disable can still submit their form and thus skip the js code part which make sure that the credit card number input is wiped before form submission.

Proposed resolution

Use a markup placeholder as commerce braintree does then generate form inputs with js.

✨ Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada nikathone Ontario

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024