A tutorial about creating simply payment form with javascript 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.
CardInfo.js allows you to get the logo of the bank and brand, brand colors and etc. by card number. With CardInfo you can create a beautiful form for receiving payments from the card.