commerce
commerce copied to clipboard
Issue #2790551 by steveoliver, bojanz, borisson_: Implement a JS libr…
…ary for the credit card form
This PR needs work. We basically want a JS version of our CreditCard.php code. In comparison to it, this JS code lacks certain credit card types (JCB, UnionPay) and Luhn validation.
Compared to 11 months ago, we have a real world need for the code in Commerce AuthNet: https://www.drupal.org/project/commerce_authnet/issues/2932486 which should help us ensure that the merged code is solid.
Also, ouch, we have no way to write JS unit tests yet. Issue to follow is https://www.drupal.org/project/drupal/issues/2815199