Skip to main content

Credit Card components

The regular credit card components:

  • Card Holder, this can be just a regular input

  • Card Number with formatting

  • Expiration date, this one is tricky because it needs to have a popup on mobile for easy selection and also the validation.

  • CCV or CVC, can also be just a number input.

The amount of code it took me to make something that looks like e-commerce is insane, so maybe having it as a reusable component would be helpful for others.

Status: Completed1 comment

Log in to comment and vote

Comments1