@trustpayments/ts-iin-lookup

Perform an IIN lookup to determine the credit card type

Usage no npm install needed!

<script type="module">
  import trustpaymentsTsIinLookup from 'https://cdn.skypack.dev/@trustpayments/ts-iin-lookup';
</script>

README

IIN Lookup

Perform an IIN lookup to determine the credit card type

Usage

import { iinLookup } from '@trustpayments/ts-iin-lookup';
const details = iinLookup.lookup('4111111111111111');
console.log(details.type); // Payment brand e.g. VISA/MASTERCARD/AMEX etc