Closed kleyber-ribeiro closed 3 years ago
Update to 2.5.0 release as you can see Amex is already set to 4 CVC see the code here:
type: 'amex',
pattern: /^3[47]/,
format: /(\d{1,4})(\d{1,6})?(\d{1,5})?/,
length: [15],
cvcLength: [4],
luhn: true
Hi All,
I've included this fantastic job in my site. I just found that when is American Express card, the Security Code is a 4 digits way and when I try to put the Security Code, it does not make the effect of showing the side of the card to show the Security Code. I've done this way:
new Card({ form: $('form[name="F1"]')[0], container: '.card-wrapper', formSelectors: { numberInput: '#id_sc_field_numero_cartao', expiryInput: '#id_sc_field_validade_cartao', cvcInput: '#id_sc_field_codigo_cartao', nameInput: '#id_sc_field_nome_cartao' }, placeholders: { number: ' ', name: 'NOME NO CARTÃO', expiry: '/**', cvc: '****' }, masks: { cardNumber: '•' }, formatting: true });
See the image:
How can I solve this?
Thanks in advance,