zdfs / toscani

This is a jQuery-based, progressively-enhanced solution for creating a single-field credit card input. The idea is to create a more streamlined credit card entry process.
872 stars 102 forks source link

Account number verification and callback #7

Closed benoitmugnier closed 10 years ago

benoitmugnier commented 11 years ago

You should have a look on this JavaScript function to be able to validate or not a credit card number : https://www.azcode.com/Mod10

May be, you can add a way to call an anonymous function when all the information are successfully completed:

$(".credit-card-group").paymentInfo({onDataComplete:function(data){ //bla bla bla }});

zdfs commented 11 years ago

I'm assuming you mention this because you want to support more cards than the four types provided. Which is fine, but you'll also want to have the appropriate images, I would think. Since this is just a proof of concept, you're more than welcome to fork the project to do what you like.

However, not sure it's something I want to add in.