recurly/recurly-js

View on GitHub
lib/const/credit-card-types.json

Summary

Maintainability
Test Coverage
{
  "master": [
    {
      "lengths": [16],
       "ranges": [
        [2221, 2720],
        [51, 55]
      ]
    }
  ],
  "diners_club": [
    {
      "lengths": [14],
      "ranges": [
        [300, 305],
        [36, 36],
        [38, 38]
      ]
    }
  ],
  "american_express": [
    {
      "lengths": [15],
      "ranges": [
        [34, 34],
        [37, 37]
      ]
    }
  ],
  "jcb": [
    {
      "lengths": [16],
      "ranges": [
        [3528, 3589]
      ]
    }
  ],
  "hipercard": [
    {
      "lengths": [19],
      "ranges": [
        [3841, 3841],
        [606282, 606282]
      ]
    },
    {
      "lengths": [16, 17, 18],
      "ranges": [
        [606282, 606282]
      ]
    }
  ],
  "visa": [
    {
      "lengths": [13, 16],
      "ranges": [
        [4, 4]
      ]
    }
  ],
  "elo": [
    {
      "lengths": [16],
      "ranges": [
        [504175, 504175],
        [5066, 5067],
        [636297, 636297],
        [636368, 636368]
      ]
    }
  ],
  "tarjeta_naranja": [
    {
      "lengths": [16, 17, 18, 19],
      "ranges": [
        [589562, 589562]
      ]
    }
  ],
  "discover": [
    {
      "lengths": [16, 17, 18, 19],
      "ranges": [
        [601100, 601103],
        [601105, 601109],
        [60112, 60114],
        [601174, 601174],
        [601177, 601179],
        [601186, 601199],
        [6440, 6505],
        [650601, 650609],
        [650611, 659999]
      ]
    }
  ],
  "union_pay": [
    {
      "lengths": [16, 17, 18, 19],
      "ranges": [
        [62000, 62182],
        [62184, 62197],
        [6220, 6270],
        [6272, 6272],
        [62760, 62777],
        [627781, 627799],
        [6282, 6289],
        [6291, 6292],
        [8100, 8171]
      ]
    }
  ],
  "maestro": [
    {
      "lengths": [12, 13, 14, 15],
      "ranges": [
        [50, 50],
        [56, 58],
        [6, 6]
      ]
    },
    {
      "lengths": [16],
      "ranges": [
        [500000, 504174],
        [504176, 506599],
        [5068, 5099],
        [560000, 589561],
        [589563, 589999],
        [6000, 6010],
        [601104, 601104],
        [60111, 60111],
        [601150, 601173],
        [601175, 601176],
        [601180, 601185],
        [601200, 606281],
        [606283, 619999],
        [62183, 62183],
        [62198, 62199],
        [6271, 6271],
        [6273, 6275],
        [627780, 627780],
        [6278, 6281],
        [6290, 6290],
        [629300, 636296],
        [636298, 636367],
        [636369, 643999],
        [650600, 650600],
        [650610, 650610],
        [66, 69]
      ]
    },
    {
      "lengths": [17, 18, 19],
      "ranges": [
        [50, 50],
        [560000, 589561],
        [589563, 589999],
        [6000, 6010],
        [601104, 601104],
        [60111, 60111],
        [601150, 601173],
        [601175, 601176],
        [601180, 601185],
        [601200, 606281],
        [606283, 619999],
        [62183, 62183],
        [62198, 62199],
        [6271, 6271],
        [6273, 6275],
        [627780, 627780],
        [6278, 6281],
        [6290, 6290],
        [6293, 6439],
        [650600, 650600],
        [650610, 650610],
        [66, 69]
      ]
    }
  ]
}