creditcard.js icon indicating copy to clipboard operation
creditcard.js copied to clipboard

Extract to another project / Entity

Open renatovico opened this issue 2 years ago • 3 comments

Want to request a feature or report a bug?

I need again validate creditcard but now in another language, think a moment about this, why not extract the current list ( https://github.com/ContaAzul/creditcard.js/blob/master/src/cards.js) to a json or csv for a better consumer in similar fashion tz-data works (https://www.iana.org/time-zones)

What is the current behavior?

CreditCard list is very specified for creditcard.js project

What is the expected behavior?

Create a more comprehensive and collaborative creditcard list

renatovico avatar Jun 30 '23 05:06 renatovico

Creating a more comprehensive and collaborative credit card list involves leveraging community contributions, adhering to security and privacy guidelines, and continuously updating the list with accurate information. ''' // Collaborative Credit Card List

const collaborativeCreditCards = [ { name: 'ExampleCard', bins: /^(123456|789012)[0-9]{10,12}/, codeLength: 3, }, // Add more card types contributed by the community... ];

export default collaborativeCreditCards; '''

vr-varad avatar Nov 20 '23 05:11 vr-varad

@cacontinuos what about adding more cards that it support that are widely used around the globe?

vr-varad avatar Nov 20 '23 21:11 vr-varad

Hey @renatovico and @vr-varad , pull requests are welcomed. Feel free to engage in this feature.

cirocfc avatar Nov 21 '23 16:11 cirocfc