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

How to get the unmasked, full credit card number #19

Closed sr8 closed 9 years ago

sr8 commented 11 years ago

I use

$('#myField').val()

to get the credit card number. But that only returns the last 4. How do I get the full number? Where is it stored?

zdfs commented 11 years ago

I think you'll have to add code to store that.

jkshapiro commented 10 years ago

It's in $("#card-number").data().ccNumber