@trustpayments/ts-luhn-check

Validate card numbers by use of the luhncheck

Usage no npm install needed!

<script type="module">
  import trustpaymentsTsLuhnCheck from 'https://cdn.skypack.dev/@trustpayments/ts-luhn-check';
</script>

README

luhncheck

Luhn check validation for credit card payments

Usage

import { luhnCheck } from '@trustpayments/ts-luhn-check';
luhnCheck('4111111111111111');