@securetrading/js-payment-card

JavaScript Payment card

Usage no npm install needed!

<script type="module">
  import securetradingJsPaymentCard from 'https://cdn.skypack.dev/@securetrading/js-payment-card';
</script>

README

Please note a newer version of the Payment card library is available at https://gitlab.com/trustpayments-public/stjs/js-payments-card.**

This project is no longer actively developed and only recieves dependency updates.

Payment card

Build Status Coverage Status Known Vulnerabilities Dependabot badge BrowserStack Status

Table of Contents

Features

  • Animated payment card: Creates an animated payment card for your form
  • Card type detection: Performs a card lookup to detect the card type of the user as they type

Support

Feel free to open a PR to contribute. All code is required to have 100% test coverage and to pass our unit and integration tests.

Browser compatibility

To ensure our browser compatibility the integration tests for this project run through BrowserStack as part of the automated Travis CI pipeline. This will run the integration tests for the following supported browsers:

  • Internet Explorer 9, 10 and 11
  • Latest versions of the following:
    • Chrome
    • Firefox
    • Edge
    • Safari

Tested by:

BrowserStack

License

MIT