DEV Community

Oikelome Jeremiah
Oikelome Jeremiah

Posted on

1

Credit Card Payment Form

Wanted to work with some masking so made a payment form so, using vanilla JS and the imask.js library, made a fairly simply payment form that uses regex patterns to detect the credit card type as the user is inputting values and properly applies the relevant spacing associated with that brand. Also wanted to do a smidge of style flair so made a simple SVG card that changes as the user fills out the form.

Top comments (1)

Collapse
 
oluwa_shocker05 profile image
Oikelome Jeremiah

❤️❤️❤️

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Please consider leaving a positive note or a gesture of appreciation in the comments if you found this helpful!

Understood!