braintree / credit-card-type

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

Bug in addCard method example #72

Closed kblestarge closed 6 years ago

kblestarge commented 6 years ago

This example doesn't work: creditCardType.addCard(visa.type, visa); The addCard method only seems to work with one object as a param. Like this: creditCardType.addCard(visa); *visa is an object returned and altered from the getTypeInfo method.

crookedneighbor commented 6 years ago

Would you like to update the docs?

kblestarge commented 6 years ago

Sure! Give me a couple hours and I'll submit a pull request.