Open liverday opened 5 years ago
This worked for me as a workaround to include Hipercard:
import { CreditCard } from 'angular-cc-library';
const cards = CreditCard.cards();
cards.unshift({
type: 'hipercard',
patterns: [606282],
format: /(\d{1,4})/g,
length: [16],
cvvLength: [3],
luhn: true,
})
CreditCard.cards = () => cards;
Hi, i'm Vitor and i'm from Brazil. We have some credit cards that doesn't exist in this library. There is a way to extend the actual cardTypes array? This will help me a lot.
Thanks!