Advertisement
casadogg

credit card brand bin ranges / regex atrocities

Sep 6th, 2017 (edited)
3,015
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!

Fontes

  • https://www.bincodes.com/bin-list/
  • https://gist.github.com/erikhenrique/5931368
  • https://www.getnewidentity.com/diners-club-credit-card.php
  • https://www.bincodes.com/bank-creditcard-generator/

Hipercard

  • Regex
    • ^(?:3841[046]0|6(?:06282|37(?:095|5(?:68|99)|6(?:09|12))))
  • Tamanho: 14, 16
  • Faixas
    • 384100
    • 384140
    • 384160
    • 606282
    • 637095
    • 637568
    • 637599
    • 637609
    • 637612

Diners International

  • Regex
    • ^3[689]\d{4}
  • Tamanho: 14
  • Faixas
    • 36xxxx
    • 38xxxx
    • 39xxxx

American Express

  • Regex
    • ^3[47]\d{4}
  • Tamanho: 15
  • Faixas
    • 34xxxx
    • 37xxxx

Elo

  • Regex
    • Completa: ^(4(0117[89]|3(1274|8935)|5(1416|7(393|63[12])))|50(4175|6(699|7([0-6]\d|7[0-8]))|9\d{3})|6(27780|36(297|368)|5(0(0(3[1-35-9]|4\d|5[01])|4(0[5-9]|([1-3]\d|8[5-9]|9\d))|5([0-2]\d|3[0-8]|4[1-9]|[5-8]\d|9[0-8])|7(0\d|1[0-8]|2[0-7])|9(0[1-9]|[1-6]\d|7[0-8]))|16(5[2-9]|[67]\d)|50([01]\d|2[1-9]|[34]\d|5[0-8]))))
    • Parte 1: ^4(0117[89]|3(1274|8935)|5(1416|7(393|63[12])))
    • Parte 2: ^50(4175|6(699|7([0-6]\d|7[0-8]))|9\d{3})
    • Parte 3: ^6(27780|36(297|368)|5(0(0(3[1-35-9]|4\d|5[01])|4(0[5-9]|([1-3]\d|8[5-9]|9\d))|5([0-2]\d|3[0-8]|4[1-9]|[5-8]\d|9[0-8])|7(0\d|1[0-8]|2[0-7])|9(0[1-9]|[1-6]\d|7[0-8]))|16(5[2-9]|[67]\d)|50([01]\d|2[1-9]|[34]\d|5[0-8])))
  • Tamanho: 16
  • Faixas
    • 401178
    • 401179
    • 431274
    • 438935
    • 451416
    • 457393
    • 457631
    • 457632
    • 504175
    • 506699 ~ 506778
    • 509000 ~ 509999
    • 627780
    • 636297
    • 636368
    • 650031 ~ 650033
    • 650035 ~ 650051
    • 650405 ~ 650439
    • 650485 ~ 650538
    • 650541 ~ 650598
    • 650700 ~ 650718
    • 650720 ~ 650727
    • 650901 ~ 650978
    • 651652 ~ 651679
    • 655000 ~ 655019
    • 655021 ~ 655058

Visa

  • Regex
    • ^4\d{5}
  • Tamanho: 13, 16, 19
  • Faixas
    • 4xxxxx

Mastercard

  • Regex
    • ^(5[1-5]\d{4}|2(2(2[1-9]\d{2}|[3-9]\d{3})|[3-6]\d{4}|7([01]\d{3}|20\d{2})))
  • Tamanho: 16
  • Faixas
    • 51xxxx ~ 55xxxx
    • 2221xx ~ 2720xx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement