braintree / credit-card-type

A library for determining credit card type
MIT License
980 stars 154 forks source link

Add UnionPay 8 series bins (Fixes #95) #96

Closed ameliabradley closed 5 years ago

ameliabradley commented 5 years ago

Added UnionPay 8 bin series based on ranges given on Vantiv's website.

ameliabradley commented 5 years ago

@crookedneighbor Are there any other changes that need made?

crookedneighbor commented 5 years ago

Not on your end.

Braintree doesn't support series 8 union pay cards, so we just need to prep our SDKs that use this module to validate it correctly. I hope to get this merged in and released next week.

crookedneighbor commented 5 years ago

This is out in v8.3.0. Thanks!

richardags commented 5 years ago

Where you guys find the BIN of all cards?

I only can find for Discovery from vendor at link above.

DISCOVER/UPDATED at March 2019 https://www.discoverglobalnetwork.com/downloads/IPP_VAR_Compliance.pdf

I find out others websites with different info of bin cards, how to compare what it's used actually? https://pt.stackoverflow.com/questions/97234/validar-n%C3%BAmero-cart%C3%A3o-de-cr%C3%A9dito https://howtodoinjava.com/regex/java-regex-validate-credit-card-numbers/

ameliabradley commented 5 years ago

@richardags Processors make announcements. At least that was the case with UnionPay. There's a link and a table in the referenced issue.