Card will take any credit card form and make it the best part of the checkout process (without you changing anything). Everything is created with pure CSS, HTML, and Javascript, no images required. To use, you'll need to include the Card JavaScript files into your HTML, no CSS link is necessary as the JavaScript file does this for you. You can find the necessary file at /dist/card.js and include it in your HTML like so. Once you've included those files, you can initialize Card. Card can be used in forms where you have multiple inputs that render to a single field (i.e. you have a first and last name input). To use Card with this functionality, just pass in a selector that selects the fields in the correct order. Card renders with default placeholders for card name, number, expiry, and cvc. To override these placeholders, you can pass in a placeholders object.

Features

  • A better credit card form in one line of code
  • Install card from npm
  • Use multiple inputs for one field
  • Render with different initial card placeholders
  • Render the card with the strings in a different language
  • Use with jQuery

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Card

Card Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Card!

Additional Project Details

Operating Systems

Windows

Programming Language

CoffeeScript

Related Categories

CoffeeScript Software Development Software

Registered

2022-06-14