Hi i regenerate token with every credit card change for cc input field, tried event on change and addEventListener('change')
card.addEventListener('change', function(event) {
//billingDataChange();
})
and
card.on('change', function(event) {
//billingDataChange();
});
Noticed that this event is fired only when you start to type first and last letter, so if you change number in the middle, or when you paste code, token won't be regenerated. Any idea how to solve this issue, maybe with different event or something else