我将此plugin用于信用卡。我想添加长度为19位的自定义卡。我不知道该怎么做,我在搜索时没有找到任何资源。请帮我如何使用$ .payment.cards。这是我的fiddle。我尝试使用那样的
$.payment.cards.push({
// Card type, as returned by $.payment.cardType.
type: 'mastercard',
// Array of prefixes used to identify the card type.
patterns: [
51, 52, 53, 54, 55,
22, 23, 24, 25, 26, 27
],
// Array of valid card number lengths.
length: [19],
// Array of valid card CVC lengths.
cvcLength: [3],
// Boolean indicating whether a valid card number should satisfy the Luhn check.
luhn: true,
// Regex used to format the card number. Each match is joined with a space.
format: /(\d{1,4})/g
}
)